From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Factor error generation out of ExecPartitionCheck.
Date: Fri, 05 Jan 2018 20:22:51 +0000
Message-ID: <E1eXYVv-0002zQ-HV@gemulon.postgresql.org> (raw)
Factor error generation out of ExecPartitionCheck.
At present, we always raise an ERROR if the partition constraint
is violated, but a pending patch for UPDATE tuple routing will
consider instead moving the tuple to the correct partition.
Refactor to make that simpler.
Amit Khandekar, reviewed by Amit Langote, David Rowley, and me.
Discussion: http://postgr.es/m/CAJ3gD9cue54GbEzfV-61nyGpijvjZgCcghvLsB0_nL8Nm8HzCA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/19c47e7c820241e1befd975cb4411af7d43e1309
Modified Files
--------------
src/backend/commands/copy.c | 2 +-
src/backend/executor/execMain.c | 107 +++++++++++++++++++--------------
src/backend/executor/execPartition.c | 5 +-
src/backend/executor/execReplication.c | 4 +-
src/backend/executor/nodeModifyTable.c | 4 +-
src/include/executor/executor.h | 7 ++-
6 files changed, 74 insertions(+), 55 deletions(-)
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: Factor error generation out of ExecPartitionCheck.
In-Reply-To: <E1eXYVv-0002zQ-HV@gemulon.postgresql.org>
References: <E1eXYVv-0002zQ-HV@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