@@ -176,7 +176,7 @@ static bool partkey_datum_from_expr(PartitionPruneContext *context,
176
176
177
177
/*
178
178
* make_partition_pruneinfo
179
- * Build List of PartitionPruneInfos, one for each 'partitioned_rels' .
179
+ * Build List of PartitionPruneInfos, one for each partitioned rel .
180
180
* These can be used in the executor to allow additional partition
181
181
* pruning to take place.
182
182
*
@@ -190,7 +190,7 @@ static bool partkey_datum_from_expr(PartitionPruneContext *context,
190
190
* pruning done during planning will have pruned everything that can be.
191
191
*/
192
192
List *
193
- make_partition_pruneinfo (PlannerInfo * root , List * partition_rels ,
193
+ make_partition_pruneinfo (PlannerInfo * root , List * partitioned_rels ,
194
194
List * subpaths , List * prunequal )
195
195
{
196
196
RelOptInfo * targetpart = NULL ;
@@ -229,11 +229,11 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
229
229
230
230
/*
231
231
* relid_subpart_map maps relid of a non-leaf partition to the index in
232
- * 'partition_rels ' of that rel (which will also be the index in the
232
+ * 'partitioned_rels ' of that rel (which will also be the index in the
233
233
* returned PartitionPruneInfo list of the info for that partition).
234
234
*/
235
235
i = 1 ;
236
- foreach (lc , partition_rels )
236
+ foreach (lc , partitioned_rels )
237
237
{
238
238
Index rti = lfirst_int (lc );
239
239
@@ -246,8 +246,8 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
246
246
relid_subpart_map [rti ] = i ++ ;
247
247
}
248
248
249
- /* We now build a PartitionPruneInfo for each rel in partition_rels */
250
- foreach (lc , partition_rels )
249
+ /* We now build a PartitionPruneInfo for each partitioned rel */
250
+ foreach (lc , partitioned_rels )
251
251
{
252
252
Index rti = lfirst_int (lc );
253
253
RelOptInfo * subpart = find_base_rel (root , rti );
0 commit comments