1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Fix thinkos in comments

The first one was noticed by Tender Wang and introduced with
8aba9322511f; the other one was newly introduced with dbca3469eb.
This commit is contained in:
Alvaro Herrera
2024-06-27 19:51:47 +02:00
parent 31877cd8ec
commit 5fcd0d0ce1

View File

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