@@ -465,7 +465,7 @@ fill_prel_with_partitions(PartRelationInfo *prel,
465465/* Initialize bounds of partitions */
466466for (i = 0 ;i < PrelChildrenCount (prel );i ++ )
467467{
468- PartBoundInfo * bound_info ;
468+ PartBoundInfo * pbin ;
469469
470470/* Clear all previous allocations */
471471MemoryContextReset (temp_mcxt );
@@ -474,30 +474,30 @@ fill_prel_with_partitions(PartRelationInfo *prel,
474474old_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}
479479MemoryContextSwitchTo (old_mcxt );
480480
481481/* Copy bounds from bound cache */
482482switch (prel -> parttype )
483483{
484484case PT_HASH :
485- prel -> children [bound_info -> part_idx ]= bound_info -> child_rel ;
485+ prel -> children [pbin -> part_idx ]= pbin -> child_rel ;
486486break ;
487487
488488case 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 */
494494old_mcxt = MemoryContextSwitchTo (cache_mcxt );
495495{
496- prel -> ranges [i ].min = CopyBound (& bound_info -> range_min ,
496+ prel -> ranges [i ].min = CopyBound (& pbin -> range_min ,
497497prel -> ev_byval ,
498498prel -> ev_len );
499499
500- prel -> ranges [i ].max = CopyBound (& bound_info -> range_max ,
500+ prel -> ranges [i ].max = CopyBound (& pbin -> range_max ,
501501prel -> ev_byval ,
502502prel -> ev_len );
503503}