pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Teach map_partition_varattnos to handle whole-row expressions.
Date: Thu, 03 Aug 2017 16:01:08 +0000
Message-ID: <E1ddIYe-0003Zf-Fb@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Teach map_partition_varattnos to handle whole-row expressions.

Otherwise, partitioned tables with RETURNING expressions or subject
to a WITH CHECK OPTION do not work properly.

Amit Langote, reviewed by Amit Khandekar and Etsuro Fujita.  A few
comment changes by me.

Discussion: http://postgr.es/m/9a39df80-871e-6212-0684-f93c83be4097@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/610e8ebb0fadd7a738c2ad07fef6c5ea86b11f8d

Modified Files
--------------
src/backend/catalog/partition.c               | 21 ++++++++----
src/backend/commands/tablecmds.c              | 12 +++++--
src/backend/executor/nodeModifyTable.c        |  4 +--
src/backend/parser/parse_utilcmd.c            |  6 ++--
src/backend/rewrite/rewriteManip.c            | 47 ++++++++++++++++++++++-----
src/include/catalog/partition.h               |  3 +-
src/include/rewrite/rewriteManip.h            |  2 +-
src/test/regress/expected/insert.out          | 21 ++++++++++++
src/test/regress/expected/updatable_views.out | 26 +++++++++++++++
src/test/regress/sql/insert.sql               | 13 ++++++++
src/test/regress/sql/updatable_views.sql      | 27 +++++++++++++++
11 files changed, 157 insertions(+), 25 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: <E1ddIYe-0003Zf-Fb@gemulon.postgresql.org>
Permalink:  ../E1ddIYe-0003Zf-Fb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ddIYe-0003Zf-Fb@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: rhaas@postgresql.org
  Subject: Re: pgsql: Teach map_partition_varattnos to handle whole-row expressions.
  In-Reply-To: <E1ddIYe-0003Zf-Fb@gemulon.postgresql.org>
  References: <E1ddIYe-0003Zf-Fb@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