diff options
author | Etsuro Fujita <efujita@postgresql.org> | 2019-08-16 14:35:55 +0900 |
---|---|---|
committer | Etsuro Fujita <efujita@postgresql.org> | 2019-08-16 14:35:55 +0900 |
commit | 076e9d42099d092475ea9eaa2902ba101a27a585 (patch) | |
tree | 333a1ad5a21090051ba280da8f7c6c28eb7712cc | |
parent | 1ced082b95b339e49fc3d9f15474f816e7a9cfb1 (diff) | |
download | postgresql-076e9d42099d092475ea9eaa2902ba101a27a585.tar.gz postgresql-076e9d42099d092475ea9eaa2902ba101a27a585.zip |
Remove useless bms_free() calls in build_child_join_rel().
These seem to be leftovers from the original partitionwise-join patch,
perhaps.
Discussion: https://postgr.es/m/CAPmGK145YiMTPRnvev1dLz8na_-0aZ=Xyqn8f2QsJFBUTObNow@mail.gmail.com
-rw-r--r-- | src/backend/optimizer/util/relnode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/optimizer/util/relnode.c b/src/backend/optimizer/util/relnode.c index 19e5a449f75..85415381fb1 100644 --- a/src/backend/optimizer/util/relnode.c +++ b/src/backend/optimizer/util/relnode.c @@ -858,11 +858,8 @@ build_child_join_rel(PlannerInfo *root, RelOptInfo *outer_rel, /* * Lateral relids referred in child join will be same as that referred in - * the parent relation. Throw any partial result computed while building - * the targetlist. + * the parent relation. */ - bms_free(joinrel->direct_lateral_relids); - bms_free(joinrel->lateral_relids); joinrel->direct_lateral_relids = (Relids) bms_copy(parent_joinrel->direct_lateral_relids); joinrel->lateral_relids = (Relids) bms_copy(parent_joinrel->lateral_relids); |