Use the right type OID after creating a shell type
Alvaro Herrera <alvherre@alvh.no-ip.org>
Use the right type OID after creating a shell type Commit a2e35b53c39b2a neglected to update the type OID to use further down in DefineType when TypeShellMake was changed to return ObjectAddress instead of OID (it got it right in DefineRange, however.) This resulted in an internal error message being issued when looking up I/O functions. Author: Michael Paquier Also add Asserts() to a couple of other places to ensure that the type OID being used is as expected.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +3 −1 |
| src/test/regress/expected/create_type.out | modified | +6 −0 |
| src/test/regress/sql/create_type.sql | modified | +6 −0 |