Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7d1d7200
Commit
7d1d7200
authored
Mar 20, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor doc patch: create function
Gavin Sherry
parent
ee303739
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
22 deletions
+30
-22
doc/src/sgml/ref/create_function.sgml
doc/src/sgml/ref/create_function.sgml
+30
-22
No files found.
doc/src/sgml/ref/create_function.sgml
View file @
7d1d7200
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.4
4 2003/01/19 00:13:29
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_function.sgml,v 1.4
5 2003/03/20 04:41:13
momjian Exp $
-->
-->
<refentry id="SQL-CREATEFUNCTION">
<refentry id="SQL-CREATEFUNCTION">
...
@@ -66,14 +66,18 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
...
@@ -66,14 +66,18 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
<listitem>
<listitem>
<para>
<para>
The data type(s) of the function's arguments, if any. The
The data type(s) of the function's arguments (optionally
input types may be base, complex, or domain types,
schema-qualified), if any. The input types may be base, complex, or
or the same as the type of an existing column.
domain types, or the same as the type of an existing column.
</para>
<para>
The type of a column is referenced by writing <replaceable
The type of a column is referenced by writing <replaceable
class="parameter">tablename</replaceable>.<replaceable
class="parameter">tablename</replaceable>.<replaceable
class="parameter">columnname</replaceable><literal>%TYPE</literal>;
class="parameter">columnname</replaceable><literal>%TYPE</literal>;
using this can sometimes help make a function independent from
using this can sometimes help make a function independent from
changes to the definition of a table.
changes to the definition of a table.
</para>
<para>
Depending on the implementation language it may also be allowed
Depending on the implementation language it may also be allowed
to specify <quote>pseudo-types</> such as <type>cstring</>.
to specify <quote>pseudo-types</> such as <type>cstring</>.
Pseudo-types indicate that the actual argument type is either
Pseudo-types indicate that the actual argument type is either
...
@@ -87,9 +91,13 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
...
@@ -87,9 +91,13 @@ CREATE [ OR REPLACE ] FUNCTION <replaceable class="parameter">name</replaceable>
<listitem>
<listitem>
<para>
<para>
The return data type. The return type may be specified as a
The return data type (optionally schema-qualified). The return type
base, complex, or domain type, or the same as the type of an
may be specified as a base, complex, domain type
existing column.
or the same as the type of an existing column. See the description
under <literal>argtype</literal> above on how to reference the type
of an existing column.
</para>
<para>
Depending on the implementation language it may also be allowed
Depending on the implementation language it may also be allowed
to specify <quote>pseudo-types</> such as <type>cstring</>.
to specify <quote>pseudo-types</> such as <type>cstring</>.
The <literal>setof</literal>
The <literal>setof</literal>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment