function definition for particular PLs. Original patch from David
Fetter, editorializing by Neil Conway.
PL/Perl Functions and Arguments
- To create a function in the PL/Perl language, use the standard syntax:
+ To create a function in the PL/Perl language, use the standard
+
+ syntax:
CREATE FUNCTION funcname (argument-types) RETURNS return-type AS $$
# PL/Perl function body
-
+
PL/Python - Python Procedural Language
PL/Python Functions
- Functions in PL/Python are declared in the usual way, for example
+ Functions in PL/Python are declared via the usual
+ linkend="sql-createfunction" endterm="sql-createfunction-title">
+ syntax. For example:
CREATE FUNCTION myfunc(text) RETURNS text
AS 'return args[0]'
PL/Tcl Functions and Arguments
- To create a function in the
PL/Tcl> language, use the standard syntax:
+ To create a function in the
PL/Tcl> language, use
+ the standard
+ endterm="sql-createfunction-title"> syntax:
CREATE FUNCTION funcname (argument-types) RETURNS return-type AS $$