Skip to content

Commit a395e21

Browse files
committed
Doc: improve documentation about run-time pruning's effects on EXPLAIN.
Tatsuo Ishii complained that this para wasn't very intelligible. Try to make it better. Discussion: https://postgr.es/m/20191207.200500.989741087350666720.t-ishii@sraoss.co.jp
1 parent e75b1e3 commit a395e21

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

doc/src/sgml/perform.sgml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -896,15 +896,16 @@ EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000
896896
</para>
897897

898898
<para>
899-
Generally, the <command>EXPLAIN</command> output will display details for
900-
every plan node which was generated by the query planner. However, there
901-
are cases where the executor is able to determine that certain nodes are
902-
not required; currently, the only node types to support this are the
903-
<literal>Append</literal> and <literal>MergeAppend</literal> nodes. These
904-
node types have the ability to discard subnodes which they are able to
905-
determine won't contain any records required by the query. It is possible
906-
to determine that nodes have been removed in this way by the presence of a
907-
"Subplans Removed" property in the <command>EXPLAIN</command> output.
899+
Normally, <command>EXPLAIN</command> will display every plan node
900+
created by the planner. However, there are cases where the executor
901+
can determine that certain nodes need not be executed because they
902+
cannot produce any rows, based on parameter values that were not
903+
available at planning time. (Currently this can only happen for child
904+
nodes of an Append or MergeAppend node that is scanning a partitioned
905+
table.) When this happens, those plan nodes are omitted from
906+
the <command>EXPLAIN</command> output and a <literal>Subplans
907+
Removed: <replaceable>N</replaceable></literal> annotation appears
908+
instead.
908909
</para>
909910
</sect2>
910911

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy