aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-06-27 19:51:47 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-06-27 19:51:47 +0200
commit468ffee47bcb9c8b7b4f7b3168aef804a3ad802c (patch)
treeb44397177038653591ba0fd14a796485acc1ce93
parentd5fd7865f068209162130a1a392367bf874b9e4d (diff)
downloadpostgresql-468ffee47bcb9c8b7b4f7b3168aef804a3ad802c.tar.gz
postgresql-468ffee47bcb9c8b7b4f7b3168aef804a3ad802c.zip
Fix thinkos in comments
The first one was noticed by Tender Wang and introduced with 8aba9322511f; the other one was newly introduced with dbca3469ebf8.
-rw-r--r--src/backend/executor/execPartition.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c
index 499112b46d2..105753cd2d1 100644
--- a/src/backend/executor/execPartition.c
+++ b/src/backend/executor/execPartition.c
@@ -1715,7 +1715,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);
@@ -1798,8 +1798,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);