aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-08-15 09:16:33 -0400
committerRobert Haas <rhaas@postgresql.org>2017-08-15 09:35:32 -0400
commit17a2a27b49ae19a1002b8230a6ceeef53082211e (patch)
tree33570fbc07814ba6f28ad1e04e857970d385a00a /src/backend/executor
parent29990634c76a2278ae68bfb951fd20d5510a732d (diff)
downloadpostgresql-17a2a27b49ae19a1002b8230a6ceeef53082211e.tar.gz
postgresql-17a2a27b49ae19a1002b8230a6ceeef53082211e.zip
Avoid unnecessary single-child Append nodes.
Before commit d3cc37f1d801a6b5cad9bf179274a8, an inheritance parent whose only children were temp tables of other sessions would end up as a simple scan of the parent; but with that commit, we end up with an Append node, per a report from Ashutosh Bapat. Tweak the logic so that we go back to the old way, and update the function header comment for partitioning while we're at it. Ashutosh Bapat, reviewed by Amit Langote and adjusted by me. Discussion: http://postgr.es/m/CAFjFpReWJr1yTkHU=OqiMBmcYCMoSW3VPR39RBuQ_ovwDFBT5Q@mail.gmail.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions