We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c91e90 commit 401418cCopy full SHA for 401418c
src/backend/partitioning/partbounds.c
@@ -1021,7 +1021,6 @@ partition_bounds_merge(int partnatts,
1021
List **outer_parts, List **inner_parts)
1022
{
1023
PartitionBoundInfo outer_binfo = outer_rel->boundinfo;
1024
- PartitionBoundInfo inner_binfo = inner_rel->boundinfo;
1025
1026
/*
1027
* Currently, this function is called only from try_partitionwise_join(),
@@ -1032,7 +1031,7 @@ partition_bounds_merge(int partnatts,
1032
1031
jointype == JOIN_ANTI);
1033
1034
/* The partitioning strategies should be the same. */
1035
- Assert(outer_binfo->strategy == inner_binfo->strategy);
+ Assert(outer_binfo->strategy == inner_rel->boundinfo->strategy);
1036
1037
*outer_parts = *inner_parts = NIL;
1038
switch (outer_binfo->strategy)
0 commit comments