pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve two error messages related to foreign keys on partitione
Date: Mon, 08 Oct 2018 09:02:39 +0000
Message-ID: <E1g9RR1-0004Gl-Fl@gemulon.postgresql.org> (raw)

Improve two error messages related to foreign keys on partitioned tables

Error messages for creating a foreign key on a partitioned table using
ONLY or NOT VALID were wrong in mentioning the objects they worked on.
This commit adds on the way some regression tests missing for those
cases.

Author: Laurenz Albe
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/c11c05810a9ed65e9b2c817a9ef442275a32fe80.camel@cybertec.at

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c2a970d1fa4d30dc41d30d0b2ad557f40510549

Modified Files
--------------
src/backend/commands/tablecmds.c          |  6 ++++--
src/test/regress/expected/foreign_key.out | 11 +++++++++++
src/test/regress/sql/foreign_key.sql      |  9 +++++++++
3 files changed, 24 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1g9RR1-0004Gl-Fl@gemulon.postgresql.org>
Permalink:  ../E1g9RR1-0004Gl-Fl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g9RR1-0004Gl-Fl@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: michael@paquier.xyz
  Subject: Re: pgsql: Improve two error messages related to foreign keys on partitione
  In-Reply-To: <E1g9RR1-0004Gl-Fl@gemulon.postgresql.org>
  References: <E1g9RR1-0004Gl-Fl@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