pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Added relation name in error messages for constraint checks.
Date: Tue, 28 Jan 2020 02:24:55 +0000
Message-ID: <E1iwGYh-00016z-KY@gemulon.postgresql.org> (raw)

Added relation name in error messages for constraint checks.

This gives more information to the user about the error and it makes such
messages consistent with the other similar messages in the code.

Reported-by: Simon Riggs
Author: Mahendra Singh and Simon Riggs
Reviewed-by: Beena Emerson and Amit Kapila
Discussion: https://postgr.es/m/CANP8+j+7YUvQvGxTrCiw77R23enMJ7DFmyA3buR+fa2pKs4XhA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/05f18c6b6b6e4b44302ee20a042cedc664532aa2

Modified Files
--------------
src/backend/commands/tablecmds.c                | 21 ++++---
src/backend/executor/execMain.c                 |  5 +-
src/test/regress/expected/alter_table.out       | 76 ++++++++++++-------------
src/test/regress/expected/copy2.out             |  2 +-
src/test/regress/expected/create_table.out      |  2 +-
src/test/regress/expected/create_table_like.out |  2 +-
src/test/regress/expected/domain.out            |  8 +--
src/test/regress/expected/generated.out         |  8 +--
src/test/regress/expected/identity.out          |  4 +-
src/test/regress/expected/index_including.out   |  4 +-
src/test/regress/expected/inherit.out           |  6 +-
src/test/regress/expected/insert.out            |  2 +-
src/test/regress/expected/privileges.out        |  6 +-
src/test/regress/expected/reloptions.out        |  4 +-
src/test/regress/expected/sequence.out          |  2 +-
src/test/regress/expected/vacuum.out            |  2 +-
src/test/regress/output/constraints.source      |  4 +-
17 files changed, 82 insertions(+), 76 deletions(-)



Message-ID: <E1iwGYh-00016z-KY@gemulon.postgresql.org>
Permalink:  ../E1iwGYh-00016z-KY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iwGYh-00016z-KY@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: akapila@postgresql.org
  Subject: Re: pgsql: Added relation name in error messages for constraint checks.
  In-Reply-To: <E1iwGYh-00016z-KY@gemulon.postgresql.org>
  References: <E1iwGYh-00016z-KY@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