Thanks to visit codestin.com
Credit goes to postgrespro.com

pgsql: Fix a bug in the original implementation of redundant-join-clause - Mailing list pgsql-committers

From [email protected] (Tom Lane)
Subject pgsql: Fix a bug in the original implementation of redundant-join-clause
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix a bug in the original implementation of redundant-join-clause removal:
clauses in which one side or the other references both sides of the join
cannot be removed as redundant, because that expression won't have been
constrained below the join.  Per report from Sergey Burladyan.

CVS HEAD does not contain this bug due to EquivalenceClass rewrite, but it
seems wise to include the regression test for it anyway.

Modified Files:
--------------
    pgsql/src/test/regress/expected:
        join.out (r1.30 -> r1.31)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join.out.diff?r1=1.30&r2=1.31)
        join_1.out (r1.12 -> r1.13)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join_1.out.diff?r1=1.12&r2=1.13)
    pgsql/src/test/regress/sql:
        join.sql (r1.21 -> r1.22)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/join.sql.diff?r1=1.21&r2=1.22)

pgsql-committers by date:

Previous
From: [email protected] (Tom Lane)
Date:
Subject: pgsql: If we're gonna use ExecRelationIsTargetRelation here, might as
Next
From: [email protected] (Tom Lane)
Date:
Subject: pgsql: Fix a bug in the original implementation of redundant-join-clause