From d0f1b4c4fb62ec1eb99debbe1fa4f8685e769313 Mon Sep 17 00:00:00 2001 From: Dennis Bjorklund Date: Fri, 25 Jun 2004 07:05:34 +0000 Subject: [PATCH] Add argument name to syntax. --- doc/src/sgml/ref/create_function.sgml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/ref/create_function.sgml b/doc/src/sgml/ref/create_function.sgml index 4929524cff..f88bc0af95 100644 --- a/doc/src/sgml/ref/create_function.sgml +++ b/doc/src/sgml/ref/create_function.sgml @@ -1,5 +1,5 @@ @@ -19,12 +19,12 @@ $PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.56 2004/05/16 23:22 -CREATE [ OR REPLACE ] FUNCTION name ( [ argtype [, ...] ] ) +CREATE [ OR REPLACE ] FUNCTION name ( [ [ argname ] argtype [, ...] ] ) RETURNS rettype { LANGUAGE langname | IMMUTABLE | STABLE | VOLATILE | CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT - | [EXTERNAL] SECURITY INVOKER | [EXTERNAL] SECURITY DEFINER + | [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER | AS 'definition' | AS 'obj_file', 'link_symbol' } ... @@ -88,6 +88,18 @@ CREATE [ OR REPLACE ] FUNCTION name + + argname + + + + The name of an argument. Some languages (currently only PL/pgSQL) let + you use the name in the function body. For other languages the + argument name is just extra documentation. + + + + argtype -- 2.40.0