pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Code review for match_clause_to_partition_key().
Date: Wed, 13 Jun 2018 20:10:35 +0000
Message-ID: <E1fTC6F-0001ag-54@gemulon.postgresql.org> (raw)

Code review for match_clause_to_partition_key().

Fix inconsistent decisions about NOMATCH vs UNSUPPORTED result codes.
If we're going to cater for partkeys that have the same expression and
different collations, surely we should also support partkeys with the
same expression and different opclasses.

Clean up shaky handling of commuted opclauses, eg checking the wrong
operator to see what its negator is.  This wouldn't cause any actual
bugs given a sane opclass definition, but it doesn't seem helpful to
expend more code to be less correct.

Improve handling of null elements in ScalarArrayOp arrays: in the
"op ALL" case, we can conclude they result in an unsatisfiable clause.

Minor cosmetic changes and comment improvements.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91781335ede4db549a28ffb8e84d3b592eef9f2f

Modified Files
--------------
src/backend/partitioning/partprune.c | 146 +++++++++++++++++++----------------
1 file changed, 81 insertions(+), 65 deletions(-)



Message-ID: <E1fTC6F-0001ag-54@gemulon.postgresql.org>
Permalink:  ../E1fTC6F-0001ag-54@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fTC6F-0001ag-54@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Code review for match_clause_to_partition_key().
  In-Reply-To: <E1fTC6F-0001ag-54@gemulon.postgresql.org>
  References: <E1fTC6F-0001ag-54@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox