pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: get_object_address: separate domain constraints from table const
Date: Tue, 23 Dec 2014 12:08:17 +0000
Message-ID: <E1Y3OG9-00053K-NL@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

get_object_address: separate domain constraints from table constraints

Apart from enabling comments on domain constraints, this enables a
future project to replicate object dropping to remote servers: with the
current mechanism there's no way to distinguish between the two types of
constraints, so there's no way to know what to drop.

Also added support for the domain constraint comments in psql's \dd and
pg_dump.

Catalog version bumped due to the change in ObjectType enum.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7eca575d1c28f6eee2bf4564f3d458d10c4a8f47

Modified Files
--------------
doc/src/sgml/ref/comment.sgml              |   14 ++++++++++++++
src/backend/catalog/objectaddress.c        |   26 ++++++++++++++++++++++----
src/backend/commands/alter.c               |    3 ++-
src/backend/commands/event_trigger.c       |    3 ++-
src/backend/commands/tablecmds.c           |    2 +-
src/backend/parser/gram.y                  |   18 +++++++++++++-----
src/backend/parser/parse_utilcmd.c         |    2 +-
src/backend/tcop/utility.c                 |    5 ++---
src/bin/pg_dump/pg_dump.c                  |   17 +++++++++++++++++
src/bin/psql/describe.c                    |   27 +++++++++++++++++++++++++--
src/include/nodes/parsenodes.h             |    3 ++-
src/test/regress/input/constraints.source  |   21 +++++++++++++++++++++
src/test/regress/output/constraints.source |   19 +++++++++++++++++++
13 files changed, 141 insertions(+), 19 deletions(-)


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


view thread (2+ messages)  latest in thread

Message-ID: <E1Y3OG9-00053K-NL@gemulon.postgresql.org>
Permalink:  ../E1Y3OG9-00053K-NL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Y3OG9-00053K-NL@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: get_object_address: separate domain constraints from table const
  In-Reply-To: <E1Y3OG9-00053K-NL@gemulon.postgresql.org>
  References: <E1Y3OG9-00053K-NL@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