pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: get_object_address: separate domain constraints from table const
2+ messages / 2 participants
[nested] [flat]
* pgsql: get_object_address: separate domain constraints from table const
@ 2014-12-23 12:08 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 2+ messages in thread
From: Alvaro Herrera @ 2014-12-23 12:08 UTC (permalink / raw)
To: 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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: get_object_address: separate domain constraints from table const
@ 2014-12-23 12:37 Alvaro Herrera <alvherre@2ndquadrant.com>
parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 2+ messages in thread
From: Alvaro Herrera @ 2014-12-23 12:37 UTC (permalink / raw)
To: pgsql-committers
Alvaro Herrera wrote:
> 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.
Grrr. I neglected to "git add" the catversion.h change :-( Nevermind.
I'm committing another catalog-updating patch shortly.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-12-23 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23 12:08 pgsql: get_object_address: separate domain constraints from table const Alvaro Herrera <alvherre@alvh.no-ip.org>
2014-12-23 12:37 ` Alvaro Herrera <alvherre@2ndquadrant.com>
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