Fix dependency, when changing a function's argument/return type.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b47e2f7a94631c9dc8374339de2f668d898cd1c6
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2017-06-16T08:46:11Z
Releases: 9.3.18
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

Files

Discussion