get_object_address: separate domain constraints from table constraints

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 7eca575d1c28f6eee2bf4564f3d458d10c4a8f47
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2014-12-23T12:06:44Z
Releases: 9.5.0
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.

Files