aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorDavid Rowley <drowley@postgresql.org>2024-03-15 11:55:50 +1300
committerDavid Rowley <drowley@postgresql.org>2024-03-15 11:55:50 +1300
commit4e1ff2aadefbfbf798a4d318514ac85b2fbdc5aa (patch)
tree951d471e0f9a660d7bafb9ae39fa9ece8eabd623 /src/backend/executor/nodeModifyTable.c
parent52898c63e724cd6e18728b4bc0f8d9ec49f12b14 (diff)
downloadpostgresql-4e1ff2aadefbfbf798a4d318514ac85b2fbdc5aa.tar.gz
postgresql-4e1ff2aadefbfbf798a4d318514ac85b2fbdc5aa.zip
Trim ORDER BY/DISTINCT aggregate pathkeys in gather_grouping_paths
Similar to d8a295389, trim off any PathKeys which are for ORDER BY / DISTINCT aggregate functions from the PathKey List for the Gather Merge paths created by gather_grouping_paths(). These additional PathKeys are not valid to use after grouping has taken place as these PathKeys belong to columns which are inputs to an aggregate function and, therefore are unavailable after aggregation. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/cf63174c-8c89-3953-cb49-48f41f74941a@gmail.com Backpatch-through: 16, where 1349d2790 was added
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions