mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -899,12 +899,12 @@ EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000
|
||||
Generally, the <command>EXPLAIN</command> output will display details for
|
||||
every plan node which was generated by the query planner. However, there
|
||||
are cases where the executor is able to determine that certain nodes are
|
||||
not required; currently, the only node type to support this is the
|
||||
<literal>Append</literal> node. This node type has the ability to discard
|
||||
subnodes which it is able to determine won't contain any records required
|
||||
by the query. It is possible to determine that nodes have been removed in
|
||||
this way by the presence of a "Subplans Removed" property in the
|
||||
<command>EXPLAIN</command> output.
|
||||
not required; currently, the only node types to support this are the
|
||||
<literal>Append</literal> and <literal>MergeAppend</literal> nodes. These
|
||||
node types have the ability to discard subnodes which they are able to
|
||||
determine won't contain any records required by the query. It is possible
|
||||
to determine that nodes have been removed in this way by the presence of a
|
||||
"Subplans Removed" property in the <command>EXPLAIN</command> output.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
|
Reference in New Issue
Block a user