mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Fix reversed argument to bms_is_subset.
Ashutosh Bapat
This commit is contained in:
parent
734f86d50d
commit
d29b153f18
@ -635,12 +635,12 @@ get_useful_ecs_for_relation(PlannerInfo *root, RelOptInfo *rel)
|
||||
* distribute_qual_to_rels, and rel->joininfo should only contain ECs
|
||||
* where this relation appears on one side or the other.
|
||||
*/
|
||||
if (bms_is_subset(restrictinfo->right_ec->ec_relids, relids))
|
||||
if (bms_is_subset(relids, restrictinfo->right_ec->ec_relids))
|
||||
useful_eclass_list = list_append_unique_ptr(useful_eclass_list,
|
||||
restrictinfo->right_ec);
|
||||
else
|
||||
{
|
||||
Assert(bms_is_subset(restrictinfo->left_ec->ec_relids, relids));
|
||||
Assert(bms_is_subset(relids, restrictinfo->left_ec->ec_relids));
|
||||
useful_eclass_list = list_append_unique_ptr(useful_eclass_list,
|
||||
restrictinfo->left_ec);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user