Skip to content

Commit a2dff27

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 3e53492 commit a2dff27

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
@@ -1871,7 +1871,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
18711871
int i;
18721872
ExprContext *econtext = planstate->ps_ExprContext;
18731873

1874-
/* For data reading, executor always omits detached partitions */
1874+
/* For data reading, executor always includes detached partitions */
18751875
if (estate->es_partition_directory == NULL)
18761876
estate->es_partition_directory =
18771877
CreatePartitionDirectory(estate->es_query_cxt, false);
@@ -1954,8 +1954,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
19541954
* this by creating new subplan_map and subpart_map arrays that
19551955
* corresponds to the ones in the PruneInfo where the new
19561956
* partition descriptor's OIDs match. Any that don't match can be
1957-
* set to -1, as if they were pruned. Both arrays must be in
1958-
* numerical OID order.
1957+
* set to -1, as if they were pruned. By construction, both
1958+
* arrays are in partition bounds order.
19591959
*/
19601960
pprune->nparts = partdesc->nparts;
19611961
pprune->subplan_map = palloc(sizeof(int) * partdesc->nparts);

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