]> granicus.if.org Git - postgresql/commit
Fix dependency, when changing a function's argument/return type.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 16 Jun 2017 08:33:12 +0000 (11:33 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 16 Jun 2017 08:33:12 +0000 (11:33 +0300)
commit30681c830d69ca88cf66105c94e63d3e4d905681
tree6b2c2c900930ec7da43f926e691a1e0937de354f
parent39ac55918fc31b9bf88185d28ebe7ddc58d01181
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.1424.82774@wrigleys.postgresql.org
src/backend/commands/functioncmds.c
src/test/regress/expected/create_type.out
src/test/regress/sql/create_type.sql