pgsql: Improve create_unique_path to not be fooled by unrelated clauses - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Improve create_unique_path to not be fooled by unrelated clauses
Date
Msg-id 20090227000628.193237559ED@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Improve create_unique_path to not be fooled by unrelated clauses that happen
to be syntactically part of a semijoin clause.  For example given
WHERE EXISTS(SELECT ... WHERE upper.var = lower.var AND some-condition)
where some-condition is just a restriction on the lower relation, we can
use unique-ification on lower.var after having applied some-condition within
the scan on lower.

Modified Files:
--------------
    pgsql/src/backend/optimizer/util:
        pathnode.c (r1.149 -> r1.150)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/pathnode.c?r1=1.149&r2=1.150)

pgsql-committers by date:

Previous
From: karl@pgfoundry.org (User Karl)
Date:
Subject: pgtcl - libpgtcl: Make PostgreSQL helpers "res_dont_care" and
Next
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Fix the inconsistent and wrong claims that the option value in