pgsql: Refactor predicate_{implied,refuted}_by_simple_clause.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor predicate_{implied,refuted}_by_simple_clause.
Date: 2024-03-25 21:45:25
Message-ID: E1ros8D-005dr2-D4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c7076ba6ad1c2dc2ed50496b7ec71daebfe5327c

Modified Files
--------------
src/backend/optimizer/util/predtest.c | 365 ++++++++++++++++---------
src/test/modules/test_predtest/test_predtest.c | 29 ++
2 files changed, 258 insertions(+), 136 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-03-25 22:16:17 Re: pgsql: Add TIDStore, to store sets of TIDs (ItemPointerData) efficientl
Previous Message Magnus Hagander 2024-03-25 21:22:08 Re: pgsql: make dist uses git archive