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: | [email protected] |
Views: | Whole Thread | Raw Message | 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.
Branch
------
master
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(-)
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 |