diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-04-10 12:00:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-04-10 12:00:28 -0400 |
commit | 401418ca6a689f772cbfa1aedc7485cbbcde7a94 (patch) | |
tree | cda58065a37be88597e1d24fd6cfc5e1c0075cd7 /src | |
parent | 7c91e9055d254524d76a72b35a919b8ff9931802 (diff) | |
download | postgresql-401418ca6a689f772cbfa1aedc7485cbbcde7a94.tar.gz postgresql-401418ca6a689f772cbfa1aedc7485cbbcde7a94.zip |
Suppress unused-variable warning.
Ashutosh Bapat
Discussion: https://postgr.es/m/CAG-ACPWPB8Lc_aFj25eiPFqi31YB5vmaZnb39mbHSf5Yej=miA@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/partitioning/partbounds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index 7607501fe7f..4681441dcc9 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -1021,7 +1021,6 @@ partition_bounds_merge(int partnatts, List **outer_parts, List **inner_parts) { PartitionBoundInfo outer_binfo = outer_rel->boundinfo; - PartitionBoundInfo inner_binfo = inner_rel->boundinfo; /* * Currently, this function is called only from try_partitionwise_join(), @@ -1032,7 +1031,7 @@ partition_bounds_merge(int partnatts, jointype == JOIN_ANTI); /* The partitioning strategies should be the same. */ - Assert(outer_binfo->strategy == inner_binfo->strategy); + Assert(outer_binfo->strategy == inner_rel->boundinfo->strategy); *outer_parts = *inner_parts = NIL; switch (outer_binfo->strategy) |