@@ -1537,7 +1537,7 @@ ExecCreatePartitionPruneState(PlanState *planstate,
1537
1537
ListCell * lc ;
1538
1538
int i ;
1539
1539
1540
- /* For data reading, executor alwaysomits detached partitions */
1540
+ /* For data reading, executor alwaysincludes detached partitions */
1541
1541
if (estate -> es_partition_directory == NULL )
1542
1542
estate -> es_partition_directory =
1543
1543
CreatePartitionDirectory (estate -> es_query_cxt , false);
@@ -1620,8 +1620,8 @@ ExecCreatePartitionPruneState(PlanState *planstate,
1620
1620
* this by creating new subplan_map and subpart_map arrays that
1621
1621
* corresponds to the ones in the PruneInfo where the new
1622
1622
* partition descriptor's OIDs match. Any that don't match can be
1623
- * set to -1, as if they were pruned.Both arrays must be in
1624
- *numerical OID order.
1623
+ * set to -1, as if they were pruned.By construction, both
1624
+ *arrays are in partition bounds order.
1625
1625
*/
1626
1626
pprune -> nparts = partdesc -> nparts ;
1627
1627
pprune -> subplan_map = palloc (sizeof (int )* partdesc -> nparts );