diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-06-27 19:51:47 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-06-27 19:51:47 +0200 |
commit | 79228c0459817cfbf830395c77735d8f3bce3f47 (patch) | |
tree | 8eeb06ccd33fc6cbf566bb40a127552b96f6923e /src/backend/executor/execPartition.c | |
parent | 187b8991f70fc3d2a13dc709edd408a8df0be055 (diff) |
Fix thinkos in comments
The first one was noticed by Tender Wang and introduced with
8aba9322511f; the other one was newly introduced with dbca3469ebf8.
Diffstat (limited to 'src/backend/executor/execPartition.c')
-rw-r--r-- | src/backend/executor/execPartition.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index a3db1d280b3..6de40aacfa5 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -1863,7 +1863,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo) int i; ExprContext *econtext = planstate->ps_ExprContext; - /* For data reading, executor always omits detached partitions */ + /* For data reading, executor always includes detached partitions */ if (estate->es_partition_directory == NULL) estate->es_partition_directory = CreatePartitionDirectory(estate->es_query_cxt, false); @@ -1946,8 +1946,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo) * this by creating new subplan_map and subpart_map arrays that * corresponds to the ones in the PruneInfo where the new * partition descriptor's OIDs match. Any that don't match can be - * set to -1, as if they were pruned. Both arrays must be in - * numerical OID order. + * set to -1, as if they were pruned. By construction, both + * arrays are in partition bounds order. */ pprune->nparts = partdesc->nparts; pprune->subplan_map = palloc(sizeof(int) * partdesc->nparts); |