pgsql: Teach const-expression simplification to simplify boolean - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: Teach const-expression simplification to simplify boolean
Date
Msg-id 20050327191802.81C17536C0@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Teach const-expression simplification to simplify boolean equality cases,
that is 'x = true' becomes 'x' and 'x = false' becomes 'NOT x'.  This isn't
all that amazingly useful in itself, but it ensures that we will recognize
the different forms as being logically equivalent when checking partial
index predicates.  Per example from Patrick Clery.

Modified Files:
--------------
    pgsql/src/backend/optimizer/util:
        clauses.c (r1.188 -> r1.189)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/clauses.c.diff?r1=1.188&r2=1.189)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: Eliminate duplicate hasnulls bit testing in index tuple access,
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: First steps towards index scans with heap access decoupled from