aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorAndrew Gierth <rhodiumtoad@postgresql.org>2019-06-30 23:49:13 +0100
committerAndrew Gierth <rhodiumtoad@postgresql.org>2019-06-30 23:49:13 +0100
commitda53be23d1c5e529675e958eaee54cfed4e4dbac (patch)
treec312d87428ebd5ff945c4adc6e5ba2dae3f907b4 /contrib/postgres_fdw/sql/postgres_fdw.sql
parentc000a47ad1fdd4fb92c7068279d97e0c3db4f8eb (diff)
downloadpostgresql-da53be23d1c5e529675e958eaee54cfed4e4dbac.tar.gz
postgresql-da53be23d1c5e529675e958eaee54cfed4e4dbac.zip
Repair logic for reordering grouping sets optimization.
The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a little, and add a test. Per report from Richard Guo, though I didn't use their patch. Original bug seems to have been my fault. Backpatch back to 9.5 where grouping sets were introduced. Discussion: https://postgr.es/m/CAN_9JTzyjGcUjiBHxLsgqfk7PkdLGXiM=pwM+=ph2LsWw0WO1A@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions