Improve error reporting for tuple-routing failures.

Robert Haas <rhaas@postgresql.org>

Commit: 5a73e17317e91912b2755f7960d5bf31d374cf31
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-03-03T03:39:52Z
Releases: 10.0
Improve error reporting for tuple-routing failures.

Currently, the whole row is shown without column names.  Instead,
adopt a style similar to _bt_check_unique() in ExecFindPartition()
and show the failing key: (key1, ...) = (val1, ...).

Amit Langote, per a complaint from Simon Riggs.  Reviewed by me;
I also adjusted the grammar in one of the comments.

Discussion: http://postgr.es/m/9f9dc7ae-14f0-4a25-5485-964d9bfc19bd@lab.ntt.co.jp

Files

Discussion