@@ -1863,7 +1863,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
18631863int i ;
18641864ExprContext * econtext = planstate -> ps_ExprContext ;
18651865
1866- /* For data reading, executor alwaysomits detached partitions */
1866+ /* For data reading, executor alwaysincludes detached partitions */
18671867if (estate -> es_partition_directory == NULL )
18681868estate -> es_partition_directory =
18691869CreatePartitionDirectory (estate -> es_query_cxt , false);
@@ -1946,8 +1946,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
19461946 * this by creating new subplan_map and subpart_map arrays that
19471947 * corresponds to the ones in the PruneInfo where the new
19481948 * partition descriptor's OIDs match. Any that don't match can be
1949- * set to -1, as if they were pruned.Both arrays must be in
1950- *numerical OID order.
1949+ * set to -1, as if they were pruned.By construction, both
1950+ *arrays are in partition bounds order.
19511951 */
19521952pprune -> nparts = partdesc -> nparts ;
19531953pprune -> subplan_map = palloc (sizeof (int )* partdesc -> nparts );