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: Various fixes around ON CONFLICT for rule deparsing.
Date: Tue, 19 May 2015 21:20:55 +0000
Message-ID: <E1YuowZ-0002Ng-U9@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Various fixes around ON CONFLICT for rule deparsing.

Neither the deparsing of the new alias for INSERT's target table, nor of
the inference clause was supported. Also fixup a typo in an error
message.

Add regression tests to test those code paths.

Author: Peter Geoghegan

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9bc77c45199c7d2e525cd5b1457d5a57f6e9edb0

Modified Files
--------------
src/backend/parser/parse_clause.c             |    2 +-
src/backend/utils/adt/ruleutils.c             |   79 ++++++++++++++++++++++++-
src/test/regress/expected/insert_conflict.out |    2 +-
src/test/regress/expected/rules.out           |   66 +++++++++++++++------
src/test/regress/sql/rules.sql                |   14 ++++-
5 files changed, 140 insertions(+), 23 deletions(-)


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


Message-ID: <E1YuowZ-0002Ng-U9@gemulon.postgresql.org>
Permalink:  ../E1YuowZ-0002Ng-U9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YuowZ-0002Ng-U9@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: Various fixes around ON CONFLICT for rule deparsing.
  In-Reply-To: <E1YuowZ-0002Ng-U9@gemulon.postgresql.org>
  References: <E1YuowZ-0002Ng-U9@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