mirror of
https://github.com/postgres/postgres.git
synced 2025-05-29 16:21:20 +03:00
Remove set-but-not-used variable.
In branches before 9.3, commit 8703059c6 caused join_is_legal()'s unique_ified variable to become unused, since its only remaining use is for LATERAL-related tests which don't exist pre-9.3. My compiler didn't complain about that, but Peter's does.
This commit is contained in:
parent
befc63e849
commit
49232d4191
@ -327,7 +327,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
|
|||||||
{
|
{
|
||||||
SpecialJoinInfo *match_sjinfo;
|
SpecialJoinInfo *match_sjinfo;
|
||||||
bool reversed;
|
bool reversed;
|
||||||
bool unique_ified;
|
|
||||||
bool must_be_leftjoin;
|
bool must_be_leftjoin;
|
||||||
ListCell *l;
|
ListCell *l;
|
||||||
|
|
||||||
@ -345,7 +344,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
|
|||||||
*/
|
*/
|
||||||
match_sjinfo = NULL;
|
match_sjinfo = NULL;
|
||||||
reversed = false;
|
reversed = false;
|
||||||
unique_ified = false;
|
|
||||||
must_be_leftjoin = false;
|
must_be_leftjoin = false;
|
||||||
|
|
||||||
foreach(l, root->join_info_list)
|
foreach(l, root->join_info_list)
|
||||||
@ -447,7 +445,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
|
|||||||
return false; /* invalid join path */
|
return false; /* invalid join path */
|
||||||
match_sjinfo = sjinfo;
|
match_sjinfo = sjinfo;
|
||||||
reversed = false;
|
reversed = false;
|
||||||
unique_ified = true;
|
|
||||||
}
|
}
|
||||||
else if (sjinfo->jointype == JOIN_SEMI &&
|
else if (sjinfo->jointype == JOIN_SEMI &&
|
||||||
bms_equal(sjinfo->syn_righthand, rel1->relids) &&
|
bms_equal(sjinfo->syn_righthand, rel1->relids) &&
|
||||||
@ -459,7 +456,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
|
|||||||
return false; /* invalid join path */
|
return false; /* invalid join path */
|
||||||
match_sjinfo = sjinfo;
|
match_sjinfo = sjinfo;
|
||||||
reversed = true;
|
reversed = true;
|
||||||
unique_ified = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user