Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 401418c

Browse files
committed
Suppress unused-variable warning.
Ashutosh Bapat Discussion: https://postgr.es/m/CAG-ACPWPB8Lc_aFj25eiPFqi31YB5vmaZnb39mbHSf5Yej=miA@mail.gmail.com
1 parent 7c91e90 commit 401418c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/partitioning/partbounds.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,6 @@ partition_bounds_merge(int partnatts,
10211021
List **outer_parts, List **inner_parts)
10221022
{
10231023
PartitionBoundInfo outer_binfo = outer_rel->boundinfo;
1024-
PartitionBoundInfo inner_binfo = inner_rel->boundinfo;
10251024

10261025
/*
10271026
* Currently, this function is called only from try_partitionwise_join(),
@@ -1032,7 +1031,7 @@ partition_bounds_merge(int partnatts,
10321031
jointype == JOIN_ANTI);
10331032

10341033
/* The partitioning strategies should be the same. */
1035-
Assert(outer_binfo->strategy == inner_binfo->strategy);
1034+
Assert(outer_binfo->strategy == inner_rel->boundinfo->strategy);
10361035

10371036
*outer_parts = *inner_parts = NIL;
10381037
switch (outer_binfo->strategy)

0 commit comments

Comments
 (0)