Expand run-time partition pruning to work with MergeAppend
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 19 Jul 2018 10:49:43 +0000 (13:49 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 19 Jul 2018 10:49:43 +0000 (13:49 +0300)
commit5220bb7533f9891b1e071da6461d5c387e8f7b09
treebdf9a0a35879d8d1eacae28f9eac2cfdea79c3cf
parentb33ef397a1698ddd06f325d0f92a6643ec55577f
Expand run-time partition pruning to work with MergeAppend

This expands the support for the run-time partition pruning which was added
for Append in 499be013de to also allow unneeded subnodes of a MergeAppend
to be removed.

Author: David Rowley
Discussion: https://www.postgresql.org/message-id/CAKJS1f_F_V8D7Wu-HVdnH7zCUxhoGK8XhLLtd%3DCu85qDZzXrgg%40mail.gmail.com
doc/src/sgml/perform.sgml
src/backend/executor/nodeAppend.c
src/backend/executor/nodeMergeAppend.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/plan/createplan.c
src/include/nodes/execnodes.h
src/include/nodes/plannodes.h
src/test/regress/expected/partition_prune.out
src/test/regress/sql/partition_prune.sql