Skip to content

Commit 6fa391b

Browse files
committed
Avoid masking a function parameter name with a local variable name.
No actual bug here, but it might confuse readers, so change the name of the local variable. Ashutosh Bapat
1 parent bd673e8 commit 6fa391b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/backend/optimizer/path/joinpath.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ add_paths_to_joinrel(PlannerInfo *root,
131131
*/
132132
foreach(lc, root->join_info_list)
133133
{
134-
SpecialJoinInfo *sjinfo = (SpecialJoinInfo *) lfirst(lc);
134+
SpecialJoinInfo *sjinfo2 = (SpecialJoinInfo *) lfirst(lc);
135135

136136
/*
137137
* SJ is relevant to this join if we have some part of its RHS
@@ -140,19 +140,19 @@ add_paths_to_joinrel(PlannerInfo *root,
140140
* join has already been proven legal.) If the SJ is relevant, it
141141
* presents constraints for joining to anything not in its RHS.
142142
*/
143-
if (bms_overlap(joinrel->relids, sjinfo->min_righthand) &&
144-
!bms_overlap(joinrel->relids, sjinfo->min_lefthand))
143+
if (bms_overlap(joinrel->relids, sjinfo2->min_righthand) &&
144+
!bms_overlap(joinrel->relids, sjinfo2->min_lefthand))
145145
extra.param_source_rels = bms_join(extra.param_source_rels,
146146
bms_difference(root->all_baserels,
147-
sjinfo->min_righthand));
147+
sjinfo2->min_righthand));
148148

149149
/* full joins constrain both sides symmetrically */
150-
if (sjinfo->jointype == JOIN_FULL &&
151-
bms_overlap(joinrel->relids, sjinfo->min_lefthand) &&
152-
!bms_overlap(joinrel->relids, sjinfo->min_righthand))
150+
if (sjinfo2->jointype == JOIN_FULL &&
151+
bms_overlap(joinrel->relids, sjinfo2->min_lefthand) &&
152+
!bms_overlap(joinrel->relids, sjinfo2->min_righthand))
153153
extra.param_source_rels = bms_join(extra.param_source_rels,
154154
bms_difference(root->all_baserels,
155-
sjinfo->min_lefthand));
155+
sjinfo2->min_lefthand));
156156
}
157157

158158
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy