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
c8b5598a
Commit
c8b5598a
authored
Apr 30, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document pltcl's return_null command.
parent
955c8771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
doc/src/sgml/pltcl.sgml
doc/src/sgml/pltcl.sgml
+10
-3
No files found.
doc/src/sgml/pltcl.sgml
View file @
c8b5598a
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.
8 2001/03/25 10:16:12 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.
9 2001/04/30 22:22:34 tgl
Exp $
-->
<chapter id="pltcl">
...
...
@@ -96,8 +96,10 @@ CREATE FUNCTION <replaceable>funcname</replaceable> (<replaceable>argument-types
</programlisting>
When the function is called, the arguments are given as
variables $1 ... $n to the Tcl procedure body. For example,
a function
variables <literal>$1</literal> ... <literal>$n</literal> to the
Tcl procedure body. The result is returned
from the Tcl code in the usual way, with a <literal>return</literal>
statement. For example, a function
returning the higher of two int4 values could be defined as:
<programlisting>
...
...
@@ -107,6 +109,11 @@ CREATE FUNCTION tcl_max (int4, int4) RETURNS int4 AS '
' LANGUAGE 'pltcl';
</programlisting>
To return a NULL value from a PL/Tcl function, execute
<literal>return_null</literal>.
</para>
<para>
Composite type arguments are given to the procedure as Tcl arrays.
The element names
in the array are the attribute names of the composite
...
...
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