@@ -1863,7 +1863,7 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1863
1863
int i ;
1864
1864
ExprContext * econtext = planstate -> ps_ExprContext ;
1865
1865
1866
- /* For data reading, executor alwaysomits detached partitions */
1866
+ /* For data reading, executor alwaysincludes detached partitions */
1867
1867
if (estate -> es_partition_directory == NULL )
1868
1868
estate -> es_partition_directory =
1869
1869
CreatePartitionDirectory (estate -> es_query_cxt , false);
@@ -1946,8 +1946,8 @@ CreatePartitionPruneState(PlanState *planstate, PartitionPruneInfo *pruneinfo)
1946
1946
* this by creating new subplan_map and subpart_map arrays that
1947
1947
* corresponds to the ones in the PruneInfo where the new
1948
1948
* 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.
1951
1951
*/
1952
1952
pprune -> nparts = partdesc -> nparts ;
1953
1953
pprune -> subplan_map = palloc (sizeof (int )* partdesc -> nparts );