@@ -1715,7 +1715,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1715
1715
int i ;
1716
1716
ExprContext * econtext = planstate -> ps_ExprContext ;
1717
1717
1718
- /* For data reading, executor alwaysomits detached partitions */
1718
+ /* For data reading, executor alwaysincludes detached partitions */
1719
1719
if (estate -> es_partition_directory == NULL )
1720
1720
estate -> es_partition_directory =
1721
1721
CreatePartitionDirectory (estate -> es_query_cxt , false);
@@ -1798,8 +1798,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1798
1798
* this by creating new subplan_map and subpart_map arrays that
1799
1799
* corresponds to the ones in the PruneInfo where the new
1800
1800
* 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.
1803
1803
*/
1804
1804
pprune -> nparts = partdesc -> nparts ;
1805
1805
pprune -> subplan_map = palloc (sizeof (int )* partdesc -> nparts );