pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve error reporting for tuple-routing failures.
Date: Fri, 03 Mar 2017 03:42:11 +0000
Message-ID: <E1cje6d-0006TN-91@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5a73e17317e91912b2755f7960d5bf31d374cf31

Modified Files
--------------
src/backend/access/index/genam.c     |   4 ++
src/backend/catalog/partition.c      |  30 ++++----
src/backend/executor/execMain.c      | 132 ++++++++++++++++++++++++++++++-----
src/backend/utils/adt/ruleutils.c    |  37 +++++++---
src/include/catalog/partition.h      |   8 ++-
src/include/utils/ruleutils.h        |   2 +
src/test/regress/expected/insert.out |  38 ++++++++--
src/test/regress/sql/insert.sql      |  30 ++++++++
8 files changed, 231 insertions(+), 50 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cje6d-0006TN-91@gemulon.postgresql.org>
Permalink:  ../E1cje6d-0006TN-91@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cje6d-0006TN-91@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Improve error reporting for tuple-routing failures.
  In-Reply-To: <E1cje6d-0006TN-91@gemulon.postgresql.org>
  References: <E1cje6d-0006TN-91@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox