diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-25 20:30:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-25 20:30:52 +0000 |
commit | aaaacf0f6c861dccc4951a4630394801168fe366 (patch) | |
tree | 4de10d8e4a95b6b2427ca5ad2e36fe302963e699 /src/backend/access/transam/clog.c | |
parent | 0fa322a14eb09c8ca6c0fbbbc32d359ae9bc5197 (diff) |
Fix longstanding bug that would sometimes let the planner generate a bad plan
for an outer join; symptom is bogus error "RIGHT JOIN is only supported with
merge-joinable join conditions". Problem was that select_mergejoin_clauses
did its tests in the wrong order. We need to force left join not right join
for a merge join when there are non-mergeable join clauses; but the test for
this only accounted for mergejoinability of the clause operator, and not
whether the left and right Vars were of the proper relations. Per report
from Jean-Pierre Pelletier.
Diffstat (limited to 'src/backend/access/transam/clog.c')
0 files changed, 0 insertions, 0 deletions