Thread: pgsql: Repair planning bug introduced in 7.4: outer-join ON clauses that

pgsql: Repair planning bug introduced in 7.4: outer-join ON clauses that

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Repair planning bug introduced in 7.4: outer-join ON clauses that referenced
only the inner-side relation would be considered as potential equijoin clauses,
which is wrong because the condition doesn't necessarily hold above the point
of the outer join.  Per test case from Kevin Grittner (bug#1916).

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        initsplan.c (r1.108 -> r1.109)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/initsplan.c.diff?r1=1.108&r2=1.109)
        planmain.c (r1.87 -> r1.88)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/planmain.c.diff?r1=1.87&r2=1.88)
    pgsql/src/include/optimizer:
        planmain.h (r1.88 -> r1.89)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/planmain.h.diff?r1=1.88&r2=1.89)