diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-07-19 13:49:43 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2018-07-19 13:49:43 +0300 |
commit | 5220bb7533f9891b1e071da6461d5c387e8f7b09 (patch) | |
tree | bdf9a0a35879d8d1eacae28f9eac2cfdea79c3cf /src/backend/executor/nodeAppend.c | |
parent | b33ef397a1698ddd06f325d0f92a6643ec55577f (diff) | |
download | postgresql-5220bb7533f9891b1e071da6461d5c387e8f7b09.tar.gz postgresql-5220bb7533f9891b1e071da6461d5c387e8f7b09.zip |
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
Diffstat (limited to 'src/backend/executor/nodeAppend.c')
-rw-r--r-- | src/backend/executor/nodeAppend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeAppend.c b/src/backend/executor/nodeAppend.c index 5ce4fb43e1a..e7188b2d310 100644 --- a/src/backend/executor/nodeAppend.c +++ b/src/backend/executor/nodeAppend.c @@ -151,7 +151,7 @@ ExecInitAppend(Append *node, EState *estate, int eflags) /* * The case where no subplans survive pruning must be handled * specially. The problem here is that code in explain.c requires - * an Append to have at least one subplan in order for it to + * a MergeAppend to have at least one subplan in order for it to * properly determine the Vars in that subplan's targetlist. We * sidestep this issue by just initializing the first subplan and * setting as_whichplan to NO_MATCHING_SUBPLANS to indicate that |