From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix reporting of violations in ExecConstraints, again.
Date: Mon, 10 Apr 2017 16:47:46 +0000
Message-ID: <E1cxcTi-0004ED-KE@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Fix reporting of violations in ExecConstraints, again.
We decided in f1b4c771ea74f42447dccaed42ffcdcccf3aa694 to pass the
original slot to ExecConstraints(), but that breaks when there are
BEFORE ROW triggers involved. So we need to do reverse-map the tuples
back to the original descriptor instead, as Amit originally proposed.
Amit Langote, reviewed by Ashutosh Bapat. One overlooked comment
fixed by me.
Discussion: http://postgr.es/m/b3a17254-6849-e542-2353-bde4e880b6a4@lab.ntt.co.jp
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/c0a8ae7be392aa09dd7e148ff662013e8e148893
Modified Files
--------------
src/backend/commands/copy.c | 6 ++--
src/backend/executor/execMain.c | 58 +++++++++++++++++++++++++++-------
src/backend/executor/execReplication.c | 4 +--
src/backend/executor/nodeModifyTable.c | 7 ++--
src/include/executor/executor.h | 3 +-
src/test/regress/expected/insert.out | 21 ++++++++++--
src/test/regress/sql/insert.sql | 21 ++++++++++--
7 files changed, 92 insertions(+), 28 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Fix reporting of violations in ExecConstraints, again.
In-Reply-To: <E1cxcTi-0004ED-KE@gemulon.postgresql.org>
References: <E1cxcTi-0004ED-KE@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