Factor error generation out of ExecPartitionCheck.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +1 −1 |
| src/backend/executor/execMain.c | modified | +61 −46 |
| src/backend/executor/execPartition.c | modified | +3 −2 |
| src/backend/executor/execReplication.c | modified | +2 −2 |
| src/backend/executor/nodeModifyTable.c | modified | +2 −2 |
| src/include/executor/executor.h | modified | +5 −2 |
Discussion
- UPDATE of partition key 254 messages · 2017-02-13 → 2018-01-24