mirror of
https://github.com/postgres/postgres.git
synced 2025-12-18 05:01:01 +03:00
Add a bunch of pseudo-types to replace the behavior formerly associated
with OPAQUE, as per recent pghackers discussion. I still want to do some more work on the 'cstring' pseudo-type, but I'm going to commit the bulk of the changes now before the tree starts shifting under me ...
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.20 2002/03/22 19:20:21 petere Exp $
|
||||
$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.21 2002/08/22 00:01:40 tgl Exp $
|
||||
-->
|
||||
|
||||
<chapter id="pltcl">
|
||||
@@ -472,7 +472,7 @@ SELECT 'doesn''t' AS ret
|
||||
Trigger procedures can be written in PL/Tcl. As is customary in
|
||||
<productname>PostgreSQL</productname>, a procedure that's to be called
|
||||
as a trigger must be declared as a function with no arguments
|
||||
and a return type of <literal>opaque</>.
|
||||
and a return type of <literal>trigger</>.
|
||||
</para>
|
||||
<para>
|
||||
The information from the trigger manager is passed to the procedure body
|
||||
@@ -597,7 +597,7 @@ SELECT 'doesn''t' AS ret
|
||||
incremented on every update operation:
|
||||
|
||||
<programlisting>
|
||||
CREATE FUNCTION trigfunc_modcount() RETURNS OPAQUE AS '
|
||||
CREATE FUNCTION trigfunc_modcount() RETURNS TRIGGER AS '
|
||||
switch $TG_op {
|
||||
INSERT {
|
||||
set NEW($1) 0
|
||||
|
||||
Reference in New Issue
Block a user