]> granicus.if.org Git - postgresql/commit
Teach const-expression simplification to simplify boolean equality cases,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Mar 2005 19:18:02 +0000 (19:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Mar 2005 19:18:02 +0000 (19:18 +0000)
commit351519affcffb636de68c4872521c9ac22faa228
tree8105ff8e5624a25e53d6f9cd95d451b17c1100e0
parent617dd33b6effe01852d6b4f71cd4c4e1f6eccbd6
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.
src/backend/optimizer/util/clauses.c