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 20070731195427.653909FBC3D@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:
----
REL7_4_STABLE

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

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/indxpath.c.diff?r1=1.147.4.2&r2=1.147.4.3)
    pgsql/src/backend/optimizer/plan:
        createplan.c (r1.157.2.3 -> r1.157.2.4)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.157.2.3&r2=1.157.2.4)
    pgsql/src/backend/optimizer/util:
        relnode.c (r1.52.4.1 -> r1.52.4.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/relnode.c.diff?r1=1.52.4.1&r2=1.52.4.2)
        restrictinfo.c (r1.19 -> r1.19.4.1)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/restrictinfo.c.diff?r1=1.19&r2=1.19.4.1)
    pgsql/src/include/optimizer:
        restrictinfo.h (r1.19 -> r1.19.4.1)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/optimizer/restrictinfo.h.diff?r1=1.19&r2=1.19.4.1)
    pgsql/src/test/regress/expected:
        join.out (r1.19.2.1 -> r1.19.2.2)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/join.out.diff?r1=1.19.2.1&r2=1.19.2.2)
    pgsql/src/test/regress/sql:
        join.sql (r1.13.4.1 -> r1.13.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/join.sql.diff?r1=1.13.4.1&r2=1.13.4.2)

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: dpage@pgfoundry.org (User Dpage)
Date:
Subject: edb-debugger - server: Fix the Makefile for OS X