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

Commit52d8e89

Browse files
committed
Correct code comments for PartitionedRelPruneInfo struct
The comments above the PartitionedRelPruneInfo struct incorrectlydocument how subplan_map and subpart_map are indexed. This seems tohave snuck in on4e23236.Author: David Rowley <david.rowley@2ndquadrant.com>
1 parent86a4819 commit52d8e89

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

‎src/include/nodes/plannodes.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,15 +1084,16 @@ typedef struct PartitionPruneInfo
10841084
* PartitionedRelPruneInfo - Details required to allow the executor to prune
10851085
* partitions for a single partitioned table.
10861086
*
1087-
* subplan_map[] and subpart_map[] are indexed by partition index (where
1088-
* zero is the topmost partition, and non-leaf partitions must come before
1089-
* their children). For a leaf partition p, subplan_map[p] contains the
1090-
* zero-based index of the partition's subplan in the parent plan's subplan
1091-
* list; it is -1 if the partition is non-leaf or has been pruned. For a
1092-
* non-leaf partition p, subpart_map[p] contains the zero-based index of
1093-
* that sub-partition's PartitionedRelPruneInfo in the hierarchy's
1094-
* PartitionedRelPruneInfo list; it is -1 if the partition is a leaf or has
1095-
* been pruned. Note that subplan indexes are global across the parent plan
1087+
* subplan_map[] and subpart_map[] are indexed by partition index of the
1088+
* partitioned table referenced by 'rtindex', the partition index being the
1089+
* order that the partitions are defined in the table's PartitionDesc. For a
1090+
* leaf partition p, subplan_map[p] contains the zero-based index of the
1091+
* partition's subplan in the parent plan's subplan list; it is -1 if the
1092+
* partition is non-leaf or has been pruned. For a non-leaf partition p,
1093+
* subpart_map[p] contains the zero-based index of that sub-partition's
1094+
* PartitionedRelPruneInfo in the hierarchy's PartitionedRelPruneInfo list;
1095+
* it is -1 if the partition is a leaf or has been pruned. Note that subplan
1096+
* indexes, as stored in 'subplan_map', are global across the parent plan
10961097
* node, but partition indexes are valid only within a particular hierarchy.
10971098
*/
10981099
typedefstructPartitionedRelPruneInfo

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp