pgsql: get_object_address: separate domain constraints from table const

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: get_object_address: separate domain constraints from table const
Date: 2014-12-23 12:08:17
Message-ID: E1Y3OG9-00053K-NL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2014-12-23 12:37:49 Re: pgsql: get_object_address: separate domain constraints from table const
Previous Message Peter Eisentraut 2014-12-23 04:11:15 pgsql: Change local_preload_libraries to PGC_USERSET