@@ -1871,7 +1871,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1871
1871
int i ;
1872
1872
ExprContext * econtext = planstate -> ps_ExprContext ;
1873
1873
1874
- /* For data reading, executor alwaysomits detached partitions */
1874
+ /* For data reading, executor alwaysincludes detached partitions */
1875
1875
if (estate -> es_partition_directory == NULL )
1876
1876
estate -> es_partition_directory =
1877
1877
CreatePartitionDirectory (estate -> es_query_cxt , false);
@@ -1954,8 +1954,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1954
1954
* this by creating new subplan_map and subpart_map arrays that
1955
1955
* corresponds to the ones in the PruneInfo where the new
1956
1956
* 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.
1959
1959
*/
1960
1960
pprune -> nparts = partdesc -> nparts ;
1961
1961
pprune -> subplan_map = palloc (sizeof (int )* partdesc -> nparts );