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: Include all columns in default names for foreign key constraints
Date: Wed, 13 Mar 2019 13:28:25 +0000
Message-ID: <E1h43vl-0005nu-Pq@gemulon.postgresql.org> (raw)

Include all columns in default names for foreign key constraints

When creating a name for a foreign key constraint when none is
specified, use all column names instead of only the first one, similar
to how it is already done for index names.

Author: Paul Martinez <hellopfm@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/CAF+2_SFjky6XRfLNRXpkG97W6PRbOO_mjAxqXzAAimU=c7w7_A@mail....

Branch
------
master

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

Modified Files
--------------
src/backend/commands/indexcmds.c          |   3 +-
src/backend/commands/statscmds.c          |   3 +-
src/backend/commands/tablecmds.c          |  42 ++++++++-
src/test/regress/expected/alter_table.out |   8 +-
src/test/regress/expected/foreign_key.out | 140 +++++++++++++++++-------------
src/test/regress/expected/rules.out       |  12 +--
src/test/regress/sql/foreign_key.sql      |  20 ++++-
7 files changed, 152 insertions(+), 76 deletions(-)



Message-ID: <E1h43vl-0005nu-Pq@gemulon.postgresql.org>
Permalink:  ../E1h43vl-0005nu-Pq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h43vl-0005nu-Pq@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: peter@eisentraut.org
  Subject: Re: pgsql: Include all columns in default names for foreign key constraints
  In-Reply-To: <E1h43vl-0005nu-Pq@gemulon.postgresql.org>
  References: <E1h43vl-0005nu-Pq@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