From e23a2b1ea02fbbb121048d5f616c397949ebdca8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 2 Oct 1999 21:27:49 +0000 Subject: Document formerly-undocumented WITH clause of CREATE FUNCTION. --- doc/src/sgml/ref/create_function.sgml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'doc/src/sgml/ref/create_function.sgml') diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index b22b9e4088f..3fb87b57f83 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -20,19 +20,21 @@ Postgres documentation - 1999-07-20 + 1999-10-02 CREATE FUNCTION name ( [ ftype [, ...] ] ) RETURNS rtype + [ WITH ( attribute [, ...] ) ] AS definition LANGUAGE 'langname' CREATE FUNCTION name ( [ ftype [, ...] ] ) RETURNS rtype + [ WITH ( attribute [, ...] ) ] AS obj_file , link_symbol - LANGUAGE 'c' + LANGUAGE 'C' @@ -79,6 +81,22 @@ CREATE FUNCTION name ( [ + + attribute + + + An optional piece of information about the function, used for + optimization. The only attribute currently supported is + iscachable. + iscachable indicates that the function always + returns the same result when given the same input values (i.e., + it does not do database lookups or otherwise use information not + directly present in its parameter list). The optimizer uses + iscachable to know whether it is safe to + pre-evaluate a call of the function. + + + definition @@ -113,8 +131,7 @@ CREATE FUNCTION name ( [ internal' or 'plname', where 'plname' - is the name of a created procedural - language. See + is the name of a created procedural language. See for details. -- cgit v1.2.3