diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-21 18:39:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-21 18:39:26 +0000 |
commit | eb3adab5685ce5a60bcf96628244f1e2a8e0ab3b (patch) | |
tree | 55ba25cb13ec6a414c7faf86a6d8da8357cfbfe7 /src/pl/plperl/plperl.c | |
parent | bc499687641a021e0dac3e146611b5a553cf0c5b (diff) | |
download | postgresql-eb3adab5685ce5a60bcf96628244f1e2a8e0ab3b.tar.gz postgresql-eb3adab5685ce5a60bcf96628244f1e2a8e0ab3b.zip |
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.
Diffstat (limited to 'src/pl/plperl/plperl.c')
-rw-r--r-- | src/pl/plperl/plperl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 2fe9f688ac7..299e389405f 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -33,7 +33,7 @@ * ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.34 2002/09/04 22:49:37 tgl Exp $ + * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.35 2002/09/21 18:39:26 tgl Exp $ * **********************************************************************/ @@ -624,8 +624,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger) { if (procStruct->prorettype == VOIDOID) /* okay */ ; - else if (procStruct->prorettype == TRIGGEROID || - procStruct->prorettype == OPAQUEOID) + else if (procStruct->prorettype == TRIGGEROID) { free(prodesc->proname); free(prodesc); |