mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
DefineType: return base type OID, not its array
Event triggers want to know the OID of the interesting object created, which is the main type. The array created as part of the operation is just a subsidiary object which is not of much interest.
This commit is contained in:
parent
301fcf33eb
commit
832a12f65e
@ -596,7 +596,7 @@ DefineType(List *names, List *parameters)
|
||||
/* alignment must be 'i' or 'd' for arrays */
|
||||
alignment = (alignment == 'd') ? 'd' : 'i';
|
||||
|
||||
typoid = TypeCreate(array_oid, /* force assignment of this type OID */
|
||||
TypeCreate(array_oid, /* force assignment of this type OID */
|
||||
array_type, /* type name */
|
||||
typeNamespace, /* namespace */
|
||||
InvalidOid, /* relation oid (n/a here) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user