Refactor predicate_{implied,refuted}_by_simple_clause.
Tom Lane <tgl@sss.pgh.pa.us>
Refactor predicate_{implied,refuted}_by_simple_clause.
Put the node-type-dependent operations into switches on nodeTag.
This should ease addition of new proof rules for other expression
node types. There is no functional change, although some tests
are made in a different order than before.
Also, add a couple of new cross-checks in test_predtest.c.
James Coleman (part of a larger patch series)
Discussion: https://postgr.es/m/CAAaqYe8Bo4bf_i6qKj8KBsmHMYXhe3Xt6vOe3OBQnOaf3_XBWg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/util/predtest.c | modified | +229 −136 |
| src/test/modules/test_predtest/test_predtest.c | modified | +29 −0 |
Discussion
- Teach predtest about IS [NOT] <boolean> proofs 14 messages · 2023-12-11 → 2024-04-06