Don't adjust ressortgroupref in generate_setop_child_grouplist()

David Rowley <drowley@postgresql.org>

Commit: 7487044d6ccf183e53d2633024595779922dbee2
Author: David Rowley <drowley@postgresql.org>
Date: 2024-04-03T02:39:29Z
Releases: 17.0
Don't adjust ressortgroupref in generate_setop_child_grouplist()

This is already done inside assignSortGroupRef(), therefore is
redundant.

Oversight from 66c0185a3.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/3703023.1711654574@sss.pgh.pa.us

Files

PathChange+/−
src/backend/optimizer/plan/planner.c modified +0 −1

Discussion