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 /doc/src/sgml/ref/create_trigger.sgml | |
| parent | bc499687641a021e0dac3e146611b5a553cf0c5b (diff) | |
| download | postgresql-eb3adab5685ce5a60bcf96628244f1e2a8e0ab3b.tar.gz | |
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 'doc/src/sgml/ref/create_trigger.sgml')
| -rw-r--r-- | doc/src/sgml/ref/create_trigger.sgml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/create_trigger.sgml b/doc/src/sgml/ref/create_trigger.sgml index c736dd95df..1134cd800e 100644 --- a/doc/src/sgml/ref/create_trigger.sgml +++ b/doc/src/sgml/ref/create_trigger.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.27 2002/08/22 00:01:40 tgl Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.28 2002/09/21 18:39:25 tgl Exp $ PostgreSQL documentation --> @@ -170,9 +170,10 @@ CREATE TRIGGER <para> In <productname>PostgreSQL</productname> versions before 7.3, it was necessary to declare trigger functions as returning the placeholder - type <type>opaque</>, rather than <type>trigger</>. This is still - supported, but is deprecated because it is obscure and causes loss of - type safety. + type <type>opaque</>, rather than <type>trigger</>. To support loading + of old dump files, <command>CREATE TRIGGER</> will accept a function + declared as returning <type>opaque</>, but it will issue a NOTICE and + change the function's declared return type to <type>trigger</>. </para> <para> |
