pgsql: Factor error generation out of ExecPartitionCheck.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Factor error generation out of ExecPartitionCheck.
Date: 2018-01-05 20:22:51
Message-ID: E1eXYVv-0002zQ-HV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2018-01-05 23:51:15 Re: pgsql: pg_upgrade: simplify code layout in a few places
Previous Message Bruce Momjian 2018-01-05 19:49:48 Re: pgsql: pg_upgrade: simplify code layout in a few places