Skip to content

Commit d0f1b4c

Browse files
committed
Add argument name to syntax.
1 parent c95246b commit d0f1b4c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

doc/src/sgml/ref/create_function.sgml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.56 2004/05/16 23:22:07 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.57 2004/06/25 07:05:34 dennis Exp $
33
-->
44

55
<refentry id="SQL-CREATEFUNCTION">
@@ -19,12 +19,12 @@ $PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.56 2004/05/16 23:22
1919

2020
<refsynopsisdiv>
2121
<synopsis>
22-
CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable> ( [ <replaceable class="parameter">argtype</replaceable> [, ...] ] )
22+
CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable> ( [ [ <replaceable class="parameter">argname</replaceable> ] <replaceable class="parameter">argtype</replaceable> [, ...] ] )
2323
RETURNS <replaceable class="parameter">rettype</replaceable>
2424
{ LANGUAGE <replaceable class="parameter">langname</replaceable>
2525
| IMMUTABLE | STABLE | VOLATILE
2626
| CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT
27-
| [EXTERNAL] SECURITY INVOKER | [EXTERNAL] SECURITY DEFINER
27+
| [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER
2828
| AS '<replaceable class="parameter">definition</replaceable>'
2929
| AS '<replaceable class="parameter">obj_file</replaceable>', '<replaceable class="parameter">link_symbol</replaceable>'
3030
} ...
@@ -88,6 +88,18 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
8888
</listitem>
8989
</varlistentry>
9090

91+
<varlistentry>
92+
<term><replaceable class="parameter">argname</replaceable></term>
93+
94+
<listitem>
95+
<para>
96+
The name of an argument. Some languages (currently only PL/pgSQL) let
97+
you use the name in the function body. For other languages the
98+
argument name is just extra documentation.
99+
</para>
100+
</listitem>
101+
</varlistentry>
102+
91103
<varlistentry>
92104
<term><replaceable class="parameter">argtype</replaceable></term>
93105

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy