pgsql: Teach const-expression simplification to simplify boolean

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach const-expression simplification to simplify boolean
Date: 2005-03-27 19:18:02
Message-ID: 20050327191802.81C17536C0@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-03-27 23:53:07 pgsql: First steps towards index scans with heap access decoupled from
Previous Message Tom Lane 2005-03-27 18:38:27 pgsql: Eliminate duplicate hasnulls bit testing in index tuple access,