Teach simplify_boolean_equality to simplify the forms foo <> true and
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jul 2009 00:24:30 +0000 (00:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jul 2009 00:24:30 +0000 (00:24 +0000)
commit896ffabbb76e5f36c0f58df07da7140429147326
tree7eef825f8af6e8ea9772e1d2f8f908146d57312d
parent425f8f3bb999952a4a73542d21a080655cca879a
Teach simplify_boolean_equality to simplify the forms foo <> true and
foo <> false, along with its previous duties of simplifying foo = true
and foo = false.  (All of these are equivalent to just foo or NOT foo
as the case may be.)  It's not clear how often this is really useful;
but it costs almost nothing to do, and it seems some people think we
should be smart about such cases.  Per recent bug report.
src/backend/optimizer/util/clauses.c
src/include/catalog/pg_operator.h