From adb77640304a375883eaaec9eb9b21036c2be0bd Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 22 Jan 2010 15:45:15 +0000 Subject: PL/Python DO handler Also cleaned up some redundancies between the primary error messages and the error context in PL/Python. Hannu Valtonen --- doc/src/sgml/plpython.sgml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index a623f3509bd..384b7aecc48 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1,4 +1,4 @@ - + PL/Python - Python Procedural Language @@ -551,6 +551,24 @@ $$ LANGUAGE plpythonu; + + Anonymous Code Blocks + + + PL/Python also supports anonymous code blocks called with the + statement: + + +DO $$ + # PL/Python code +$$ LANGUAGE plpythonu; + + + An anonymous code block receives no arguments, and whatever value it + might return is discarded. Otherwise it behaves just like a function. + + + Trigger Functions -- cgit v1.2.3