Provide an upgrade strategy for dump files containing functions declared
Tom Lane <tgl@sss.pgh.pa.us>
Provide an upgrade strategy for dump files containing functions declared with OPAQUE. CREATE LANGUAGE, CREATE TRIGGER, and CREATE TYPE will all accept references to functions declared with OPAQUE --- but they will issue a NOTICE, and will modify the function entries in pg_proc to have the preferred type-safe argument or result types instead of OPAQUE. Per recent pghackers discussions.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_language.sgml | modified | +11 −1 |
| doc/src/sgml/ref/create_trigger.sgml | modified | +5 −4 |
| doc/src/sgml/ref/create_type.sgml | modified | +5 −3 |
| src/backend/commands/define.c | modified | +4 −4 |
| src/backend/commands/functioncmds.c | modified | +80 −1 |
| src/backend/commands/proclang.c | modified | +20 −5 |
| src/backend/commands/trigger.c | modified | +15 −12 |
| src/backend/commands/typecmds.c | modified | +82 −44 |
| src/include/commands/defrem.h | modified | +9 −8 |
| src/pl/plperl/plperl.c | modified | +2 −3 |
| src/pl/plpgsql/src/pl_comp.c | modified | +2 −3 |
| src/pl/tcl/pltcl.c | modified | +2 −3 |