diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-03-08 13:59:11 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-03-08 13:59:11 -0500 |
commit | d29b153f180ba374e5e0e1f3e49762aba4a548d7 (patch) | |
tree | 2b77bed4d647fd566336835219b6e0d502e26fb1 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 734f86d50dccc91fb68a99339a22a1bcb87f9cea (diff) | |
download | postgresql-d29b153f180ba374e5e0e1f3e49762aba4a548d7.tar.gz postgresql-d29b153f180ba374e5e0e1f3e49762aba4a548d7.zip |
Fix reversed argument to bms_is_subset.
Ashutosh Bapat
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index d79e4ccbe3d..76d0e158519 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -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); } |