Factor error generation out of ExecPartitionCheck.
authorRobert Haas <rhaas@postgresql.org>
Fri, 5 Jan 2018 20:18:03 +0000 (15:18 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 5 Jan 2018 20:22:33 +0000 (15:22 -0500)
commit19c47e7c820241e1befd975cb4411af7d43e1309
treeaf3f82cd3f4a470f6a223d3c5bd3d336e4c35322
parent84a6f63e32dbefe3dc76cbe628fab6cbfc26141e
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
src/backend/commands/copy.c
src/backend/executor/execMain.c
src/backend/executor/execPartition.c
src/backend/executor/execReplication.c
src/backend/executor/nodeModifyTable.c
src/include/executor/executor.h