pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Refactor ON CONFLICT index inference parse tree representation.
Date: Tue, 19 May 2015 21:20:55 +0000
Message-ID: <E1YuowZ-0002Nf-U3@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Refactor ON CONFLICT index inference parse tree representation.

Defer lookup of opfamily and input type of a of a user specified opclass
until the optimizer selects among available unique indexes; and store
the opclass in the parse analyzed tree instead.  The primary reason for
doing this is that for rule deparsing it's easier to use the opclass
than the previous representation.

While at it also rename a variable in the inference code to better fit
it's purpose.

This is separate from the actual fixes for deparsing to make review
easier.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0740cbd7593d871858c352fab29a59cf7fa54b00

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c |    3 +-
src/backend/nodes/copyfuncs.c                   |    3 +-
src/backend/nodes/equalfuncs.c                  |    3 +-
src/backend/nodes/outfuncs.c                    |    3 +-
src/backend/nodes/readfuncs.c                   |    3 +-
src/backend/optimizer/util/plancat.c            |   34 +++++++++++++++--------
src/backend/parser/parse_clause.c               |   14 ++--------
src/include/nodes/primnodes.h                   |    3 +-
8 files changed, 31 insertions(+), 35 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (3+ messages)  latest in thread

Message-ID: <E1YuowZ-0002Nf-U3@gemulon.postgresql.org>
Permalink:  ../E1YuowZ-0002Nf-U3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YuowZ-0002Nf-U3@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: andres@anarazel.de
  Subject: Re: pgsql: Refactor ON CONFLICT index inference parse tree representation.
  In-Reply-To: <E1YuowZ-0002Nf-U3@gemulon.postgresql.org>
  References: <E1YuowZ-0002Nf-U3@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