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

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix a bug in the original implementation of redundant-join-clause
Date
Msg-id 20070731195401.1FFA89FBC2B@postgresql.org
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        indxpath.c (r1.191.2.11 -> r1.191.2.12)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/indxpath.c.diff?r1=1.191.2.11&r2=1.191.2.12)
    pgsql/src/backend/optimizer/plan:
        createplan.c (r1.202.2.4 -> r1.202.2.5)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.202.2.4&r2=1.202.2.5)
    pgsql/src/backend/optimizer/util:
        relnode.c (r1.72.2.1 -> r1.72.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/relnode.c.diff?r1=1.72.2.1&r2=1.72.2.2)
        restrictinfo.c (r1.41.2.4 -> r1.41.2.5)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/restrictinfo.c.diff?r1=1.41.2.4&r2=1.41.2.5)
    pgsql/src/include/optimizer:
        restrictinfo.h (r1.34.2.1 -> r1.34.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/restrictinfo.h.diff?r1=1.34.2.1&r2=1.34.2.2)
    pgsql/src/test/regress/expected:
        join.out (r1.25.2.2 -> r1.25.2.3)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join.out.diff?r1=1.25.2.2&r2=1.25.2.3)
        join_1.out (r1.6.2.3 -> r1.6.2.4)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join_1.out.diff?r1=1.6.2.3&r2=1.6.2.4)
    pgsql/src/test/regress/sql:
        join.sql (r1.17.2.2 -> r1.17.2.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/join.sql.diff?r1=1.17.2.2&r2=1.17.2.3)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix a bug in the original implementation of redundant-join-clause
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix a bug in the original implementation of redundant-join-clause