@@ -176,7 +176,7 @@ static bool partkey_datum_from_expr(PartitionPruneContext *context,
176176
177177/*
178178 * make_partition_pruneinfo
179- * Build List of PartitionPruneInfos, one for each 'partitioned_rels' .
179+ * Build List of PartitionPruneInfos, one for each partitioned rel .
180180 * These can be used in the executor to allow additional partition
181181 * pruning to take place.
182182 *
@@ -190,7 +190,7 @@ static bool partkey_datum_from_expr(PartitionPruneContext *context,
190190 * pruning done during planning will have pruned everything that can be.
191191 */
192192List *
193- make_partition_pruneinfo (PlannerInfo * root , List * partition_rels ,
193+ make_partition_pruneinfo (PlannerInfo * root , List * partitioned_rels ,
194194 List * subpaths , List * prunequal )
195195{
196196 RelOptInfo * targetpart = NULL ;
@@ -229,11 +229,11 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
229229
230230 /*
231231 * 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
233233 * returned PartitionPruneInfo list of the info for that partition).
234234 */
235235 i = 1 ;
236- foreach (lc , partition_rels )
236+ foreach (lc , partitioned_rels )
237237 {
238238 Index rti = lfirst_int (lc );
239239
@@ -246,8 +246,8 @@ make_partition_pruneinfo(PlannerInfo *root, List *partition_rels,
246246 relid_subpart_map [rti ] = i ++ ;
247247 }
248248
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 )
251251 {
252252 Index rti = lfirst_int (lc );
253253 RelOptInfo * subpart = find_base_rel (root , rti );
0 commit comments