Fix dependency, when changing a function's argument/return type.
authorHeikki Linnakangas
Thu, 15 Jun 2017 07:42:10 +0000 (10:42 +0300)
committerHeikki Linnakangas
Fri, 16 Jun 2017 08:44:00 +0000 (11:44 +0300)
commit501e6f8b7875a1d7928653d0a0a01b84db6c1257
tree0cbdba334e5d1da53aaa0d07d533d257829e657b
parentc7e17ce4eed9eb995e7c39f1027498882dcd3bd4
Fix dependency, when changing a function's argument/return type.

When a new base type is created using the old-style procedure of first
creating the input/output functions with "opaque" in place of the base
type, the "opaque" argument/return type is changed to the final base type,
on CREATE TYPE. However, we did not create a pg_depend record when doing
that, so the functions were left not depending on the type.

Fixes bug #14706, reported by Karen Huddleston.

Discussion: https://www.postgresql.org/message-id/20170614232259[email protected]
src/backend/commands/functioncmds.c
src/test/regress/expected/create_type.out
src/test/regress/sql/create_type.sql