Factor error generation out of ExecPartitionCheck.

Robert Haas <rhaas@postgresql.org>

Commit: 19c47e7c820241e1befd975cb4411af7d43e1309
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-01-05T20:22:33Z
Releases: 11.0
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

Discussion