summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-10-25 20:30:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-10-25 20:30:45 +0000
commitfcd978c57d4ee50bd530490eee1191a155d60205 (patch)
tree92a3f40e7e90746627cb4f1e81c7da440b3aaa2c /src/backend/tcop/postgres.c
parent01145f963fe4979714ffb1517903e42d56e56592 (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/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions