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.
{
SpecialJoinInfo *match_sjinfo;
bool reversed;
- bool unique_ified;
bool must_be_leftjoin;
ListCell *l;
*/
match_sjinfo = NULL;
reversed = false;
- unique_ified = false;
must_be_leftjoin = false;
foreach(l, root->join_info_list)
return false; /* invalid join path */
match_sjinfo = sjinfo;
reversed = false;
- unique_ified = true;
}
else if (sjinfo->jointype == JOIN_SEMI &&
bms_equal(sjinfo->syn_righthand, rel1->relids) &&
return false; /* invalid join path */
match_sjinfo = sjinfo;
reversed = true;
- unique_ified = true;
}
else
{