Add invariants check to get_useful_group_keys_orderings()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 91143c03d4ca36406a53e05cd421b19e47d131d1
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-06-06T10:42:47Z
Releases: 17.0
Add invariants check to get_useful_group_keys_orderings()

This commit introduces invariants checking of generated orderings
in get_useful_group_keys_orderings() for assert-enabled builds.

Discussion: https://postgr.es/m/a663f0f6-cbf6-49aa-af2e-234dc6768a07%40postgrespro.ru
Reported-by: Tom Lane
Author: Andrei Lepikhov
Reviewed-by: Alexander Korotkov, Pavel Borisov

Files

PathChange+/−
src/backend/optimizer/path/pathkeys.c modified +28 −0

Discussion