Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit86a4819

Browse files
committed
Update executor documentation for run-time partition pruning
With run-time partition pruning, there is no longer necessarily anexecutor node for each corresponding plan node.Author: David Rowley <david.rowley@2ndquadrant.com>
1 parentc058fc2 commit86a4819

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

‎src/backend/executor/README

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,21 @@ Plan Trees and State Trees
4545

4646
The plan tree delivered by the planner contains a tree of Plan nodes (struct
4747
types derived from struct Plan). During executor startup we build a parallel
48-
tree of identical structure containing executor state nodes --- every plan
49-
node type has a corresponding executor state node type. Each node in the
50-
state tree has a pointer to its corresponding node in the plan tree, plus
51-
executor state data as needed to implement that node type. This arrangement
52-
allows the plan tree to be completely read-only so far as the executor is
53-
concerned: all data that is modified during execution is in the state tree.
54-
Read-only plan trees make life much simpler for plan caching and reuse.
48+
tree of identical structure containing executor state nodes --- generally,
49+
every plan node type has a corresponding executor state node type. Each node
50+
in the state tree has a pointer to its corresponding node in the plan tree,
51+
plus executor state data as needed to implement that node type. This
52+
arrangement allows the plan tree to be completely read-only so far as the
53+
executor is concerned: all data that is modified during execution is in the
54+
state tree. Read-only plan trees make life much simpler for plan caching and
55+
reuse.
56+
57+
A corresponding executor state node may not be created during executor startup
58+
if the executor determines that an entire subplan is not required due to
59+
execution time partition pruning determining that no matching records will be
60+
found there. This currently only occurs for Append and MergeAppend nodes. In
61+
this case the non-required subplans are ignored and the executor state's
62+
subnode array will become out of sequence to the plan's subplan list.
5563

5664
Each Plan node may have expression trees associated with it, to represent
5765
its target list, qualification conditions, etc. These trees are also

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp