pgsql: Use the right type OID after creating a shell type - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Use the right type OID after creating a shell type
Date
Msg-id E1Yl0Eh-00063Z-Vi@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/50a16e30ebd76e70fc76abb2c8f0cd1e71deac41

Modified Files
--------------
src/backend/commands/typecmds.c           |    4 +++-
src/test/regress/expected/create_type.out |    6 ++++++
src/test/regress/sql/create_type.sql      |    6 ++++++
3 files changed, 15 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Fix installcheck for test_rls_hooks
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Make the pg_rewind regression tests more robust on slow systems.