Skip to content

Commit 468ffee

Browse files
committed
Fix thinkos in comments
The first one was noticed by Tender Wang and introduced with 8aba932; the other one was newly introduced with dbca346.
1 parent d5fd786 commit 468ffee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/executor/execPartition.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
17151715
int i;
17161716
ExprContext *econtext = planstate->ps_ExprContext;
17171717

1718-
/* For data reading, executor always omits detached partitions */
1718+
/* For data reading, executor always includes detached partitions */
17191719
if (estate->es_partition_directory == NULL)
17201720
estate->es_partition_directory =
17211721
CreatePartitionDirectory(estate->es_query_cxt, false);
@@ -1798,8 +1798,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
17981798
* this by creating new subplan_map and subpart_map arrays that
17991799
* corresponds to the ones in the PruneInfo where the new
18001800
* partition descriptor's OIDs match. Any that don't match can be
1801-
* set to -1, as if they were pruned. Both arrays must be in
1802-
* numerical OID order.
1801+
* set to -1, as if they were pruned. By construction, both
1802+
* arrays are in partition bounds order.
18031803
*/
18041804
pprune->nparts = partdesc->nparts;
18051805
pprune->subplan_map = palloc(sizeof(int) * partdesc->nparts);

0 commit comments

Comments
 (0)