pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clarify a foreign key error message
Date: Thu, 07 Nov 2024 10:21:22 +0000
Message-ID: <E1t8zdh-000c9D-UB@gemulon.postgresql.org> (raw)

Clarify a foreign key error message

Clarify the message about type mismatch in foreign key definition to
indicate which column the referencing and which is the referenced one.

Reported-by: Jian He <jian.universality@gmail.com>
Discussion: https://www.postgresql.org/message-id/CACJufxEL82ao-aXOa=d_-Xip0bix-qdSyNc9fcWxOdkEZFko8w@mail.gmail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d7a2b5bd8718a6207fb364318d7f7cccdf6219c3

Modified Files
--------------
src/backend/commands/tablecmds.c               |  2 +-
src/test/regress/expected/alter_table.out      | 16 ++++----
src/test/regress/expected/enum.out             |  2 +-
src/test/regress/expected/foreign_key.out      | 52 +++++++++++++-------------
src/test/regress/expected/without_overlaps.out |  6 +--
5 files changed, 39 insertions(+), 39 deletions(-)



Message-ID: <E1t8zdh-000c9D-UB@gemulon.postgresql.org>
Permalink:  ../E1t8zdh-000c9D-UB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t8zdh-000c9D-UB@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Clarify a foreign key error message
  In-Reply-To: <E1t8zdh-000c9D-UB@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