Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 076e9d4

Browse files
author
Etsuro Fujita
committed
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
1 parent 1ced082 commit 076e9d4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/backend/optimizer/util/relnode.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,11 +858,8 @@ build_child_join_rel(PlannerInfo *root, RelOptInfo *outer_rel,
858858

859859
/*
860860
* Lateral relids referred in child join will be same as that referred in
861-
* the parent relation. Throw any partial result computed while building
862-
* the targetlist.
861+
* the parent relation.
863862
*/
864-
bms_free(joinrel->direct_lateral_relids);
865-
bms_free(joinrel->lateral_relids);
866863
joinrel->direct_lateral_relids = (Relids) bms_copy(parent_joinrel->direct_lateral_relids);
867864
joinrel->lateral_relids = (Relids) bms_copy(parent_joinrel->lateral_relids);
868865

0 commit comments

Comments
 (0)