mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
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.
This commit is contained in:
@ -1053,10 +1053,10 @@ EventTriggerSupportsObjectType(ObjectType obtype)
|
||||
case OBJECT_ATTRIBUTE:
|
||||
case OBJECT_CAST:
|
||||
case OBJECT_COLUMN:
|
||||
case OBJECT_CONSTRAINT:
|
||||
case OBJECT_COLLATION:
|
||||
case OBJECT_CONVERSION:
|
||||
case OBJECT_DOMAIN:
|
||||
case OBJECT_DOMCONSTRAINT:
|
||||
case OBJECT_EXTENSION:
|
||||
case OBJECT_FDW:
|
||||
case OBJECT_FOREIGN_SERVER:
|
||||
@ -1073,6 +1073,7 @@ EventTriggerSupportsObjectType(ObjectType obtype)
|
||||
case OBJECT_RULE:
|
||||
case OBJECT_SCHEMA:
|
||||
case OBJECT_SEQUENCE:
|
||||
case OBJECT_TABCONSTRAINT:
|
||||
case OBJECT_TABLE:
|
||||
case OBJECT_TRIGGER:
|
||||
case OBJECT_TSCONFIGURATION:
|
||||
|
Reference in New Issue
Block a user