pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve parse representation for MERGE
Date: Fri, 06 Apr 2018 09:02:56 +0000
Message-ID: <E1f4NGq-0004Oc-1V@gemulon.postgresql.org> (raw)

Improve parse representation for MERGE

Separation of parser data structures from executor, as
requested by Tom Lane. Further improvements possible.

While there, implement error for multiple VALUES clauses via parser
to allow line number of error, as requested by Andres Freund.

Author: Pavan Deolasee

Discussion: https://www.postgresql.org/message-id/CABOikdPpqjectFchg0FyTOpsGXyPoqwgC==OLKWuxgBOsrDDZw@mail.gmail...

Branch
------
master

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

Modified Files
--------------
src/backend/nodes/copyfuncs.c        | 35 ++++++++++----
src/backend/nodes/equalfuncs.c       | 28 ++++++++---
src/backend/nodes/nodeFuncs.c        | 14 ++++--
src/backend/nodes/outfuncs.c         | 27 ++++++++---
src/backend/nodes/readfuncs.c        | 35 ++++++++++----
src/backend/parser/gram.y            | 92 ++++++++++++++++--------------------
src/backend/parser/parse_merge.c     | 86 +++++++++++++--------------------
src/backend/rewrite/rewriteHandler.c |  4 +-
src/include/nodes/nodes.h            |  3 +-
src/include/nodes/parsenodes.h       | 27 ++++++++---
src/test/regress/expected/merge.out  |  4 +-
11 files changed, 207 insertions(+), 148 deletions(-)



Message-ID: <E1f4NGq-0004Oc-1V@gemulon.postgresql.org>
Permalink:  ../E1f4NGq-0004Oc-1V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f4NGq-0004Oc-1V@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: simon@2ndQuadrant.com
  Subject: Re: pgsql: Improve parse representation for MERGE
  In-Reply-To: <E1f4NGq-0004Oc-1V@gemulon.postgresql.org>
  References: <E1f4NGq-0004Oc-1V@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