Skip to main content

Module grouping_sets

Module grouping_sets 

Source
Expand description

PostgreSQL-compatible grouping-set preparation after input schema binding.

Functionsยง

prepare_distinct_grouping_sets
GROUP BY DISTINCT operates on expanded grouping sets after parse analysis. At this point the input schema is known, so equivalent qualified and unqualified columns can share one identity and exact no-op casts can be removed without conflating expressions that PostgreSQL resolves to different operator inputs.