pgsql: Fix oversight in indexscan plan creation. - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Fix oversight in indexscan plan creation.
Date
Msg-id 20051006160155.97D2CDA1C4@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix oversight in indexscan plan creation.  I recently added code to use
predicate_implied_by() to detect redundant filter conditions, but forgot
that predicate_implied_by() assumes its first argument contains only
immutable functions.  Add a check to guarantee that.  Also, test to see
if filter conditions can be discarded because they are redundant with
the predicate of a partial index.

Modified Files:
--------------
    pgsql/src/backend/optimizer/plan:
        createplan.c (r1.198 -> r1.199)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/createplan.c.diff?r1=1.198&r2=1.199)
    pgsql/src/backend/optimizer/util:
        predtest.c (r1.2 -> r1.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/predtest.c.diff?r1=1.2&r2=1.3)

pgsql-committers by date:

Previous
From: petere@svr1.postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: pg_config should print an error message to stderr and exit if an
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: When a function not returning RECORD has a single OUT parameter,