diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2006-05-28 03:03:17 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2006-05-28 03:03:17 +0000 |
commit | 3a9ae3d2068334bbd0e54efaa729e7590994ccc8 (patch) | |
tree | 3f4cebec9623926f5a57c9866d9d97559d8c5d39 /doc/src | |
parent | 3d58a1c168fafd4e31ba3ab2da1f83ee0ae03ab4 (diff) | |
download | postgresql-3a9ae3d2068334bbd0e54efaa729e7590994ccc8.tar.gz postgresql-3a9ae3d2068334bbd0e54efaa729e7590994ccc8.zip |
TG_table_name and TG_table_schema for plpgsql, plus docs and regression.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/plpgsql.sgml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 2d1351d9c7e..4f302a858e7 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.88 2006/03/10 19:10:48 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.89 2006/05/28 03:03:17 adunstan Exp $ --> <chapter id="plpgsql"> <title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title> @@ -2745,7 +2745,28 @@ RAISE EXCEPTION 'Nonexistent ID --> %', user_id; <listitem> <para> Data type <type>name</type>; the name of the table that caused the trigger - invocation. + invocation. This is now deprecated, and could disappear in a future + release. Use <literal>TG_TABLE_NAME</> instead. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><varname>TG_TABLE_NAME</varname></term> + <listitem> + <para> + Data type <type>name</type>; the name of the table that + caused the trigger invocation. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><varname>TG_TABLE_SCHEMA</varname></term> + <listitem> + <para> + Data type <type>name</type>; the name of the schema of the + table that caused the trigger invocation. </para> </listitem> </varlistentry> |