]> granicus.if.org Git - postgresql/commit
get_object_address: separate domain constraints from table constraints
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Dec 2014 12:06:44 +0000 (09:06 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 23 Dec 2014 12:06:44 +0000 (09:06 -0300)
commit7eca575d1c28f6eee2bf4564f3d458d10c4a8f47
treeb76301d5241e8720d23ae9020fac1b48d0af7c0e
parent584e35d17c00b69d598522d3cf321fbd9b7dbd03
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.
13 files changed:
doc/src/sgml/ref/comment.sgml
src/backend/catalog/objectaddress.c
src/backend/commands/alter.c
src/backend/commands/event_trigger.c
src/backend/commands/tablecmds.c
src/backend/parser/gram.y
src/backend/parser/parse_utilcmd.c
src/backend/tcop/utility.c
src/bin/pg_dump/pg_dump.c
src/bin/psql/describe.c
src/include/nodes/parsenodes.h
src/test/regress/input/constraints.source
src/test/regress/output/constraints.source