@@ -465,7 +465,7 @@ fill_prel_with_partitions(PartRelationInfo *prel,
465465 /* Initialize bounds of partitions */
466466 for (i = 0 ; i < PrelChildrenCount (prel ); i ++ )
467467 {
468- PartBoundInfo * bound_info ;
468+ PartBoundInfo * pbin ;
469469
470470 /* Clear all previous allocations */
471471 MemoryContextReset (temp_mcxt );
@@ -474,30 +474,30 @@ fill_prel_with_partitions(PartRelationInfo *prel,
474474 old_mcxt = MemoryContextSwitchTo (temp_mcxt );
475475 {
476476 /* Fetch constraint's expression tree */
477- bound_info = get_bounds_of_partition (partitions [i ], prel );
477+ pbin = get_bounds_of_partition (partitions [i ], prel );
478478 }
479479 MemoryContextSwitchTo (old_mcxt );
480480
481481 /* Copy bounds from bound cache */
482482 switch (prel -> parttype )
483483 {
484484 case PT_HASH :
485- prel -> children [bound_info -> part_idx ] = bound_info -> child_rel ;
485+ prel -> children [pbin -> part_idx ] = pbin -> child_rel ;
486486 break ;
487487
488488 case PT_RANGE :
489489 {
490490 /* Copy child's Oid */
491- prel -> ranges [i ].child_oid = bound_info -> child_rel ;
491+ prel -> ranges [i ].child_oid = pbin -> child_rel ;
492492
493493 /* Copy all min & max Datums to the persistent mcxt */
494494 old_mcxt = MemoryContextSwitchTo (cache_mcxt );
495495 {
496- prel -> ranges [i ].min = CopyBound (& bound_info -> range_min ,
496+ prel -> ranges [i ].min = CopyBound (& pbin -> range_min ,
497497 prel -> ev_byval ,
498498 prel -> ev_len );
499499
500- prel -> ranges [i ].max = CopyBound (& bound_info -> range_max ,
500+ prel -> ranges [i ].max = CopyBound (& pbin -> range_max ,
501501 prel -> ev_byval ,
502502 prel -> ev_len );
503503 }
0 commit comments