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
7e091913
Commit
7e091913
authored
Jan 22, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes.
parent
505cdd58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
doc/src/sgml/xfunc.sgml
doc/src/sgml/xfunc.sgml
+8
-5
No files found.
doc/src/sgml/xfunc.sgml
View file @
7e091913
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.
29 2001/01/20 20:59:29 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.
30 2001/01/22 16:11:17 tgl
Exp $
-->
<chapter id="xfunc">
...
...
@@ -874,12 +874,12 @@ PG_FUNCTION_INFO_V1(funcname);
<function>PG_GETARG_<replaceable>xxx</replaceable>()</function>
macro that corresponds to the argument's datatype, and the result
is returned using a
<function>PG_
GETARG
_<replaceable>xxx</replaceable>()</function>
<function>PG_
RETURN
_<replaceable>xxx</replaceable>()</function>
macro for the return type.
</para>
<para>
Here we show the same functions as above, coded in
new
style:
Here we show the same functions as above, coded in
version-1
style:
<programlisting>
#include <string.h>
...
...
@@ -916,6 +916,7 @@ PG_FUNCTION_INFO_V1(makepoint);
Datum
makepoint(PG_FUNCTION_ARGS)
{
/* Here, the pass-by-reference nature of Point is not hidden */
Point *pointx = PG_GETARG_POINT_P(0);
Point *pointy = PG_GETARG_POINT_P(1);
Point *new_point = (Point *) palloc(sizeof(Point));
...
...
@@ -969,7 +970,7 @@ concat_text(PG_FUNCTION_ARGS)
<para>
The <command>CREATE FUNCTION</command> commands are the same as
for the
old-style
equivalents.
for the
version-0
equivalents.
</para>
<para>
...
...
@@ -994,7 +995,9 @@ concat_text(PG_FUNCTION_ARGS)
test for NULL inputs to a non-strict function, return a NULL
result (from either strict or non-strict functions), return
<quote>set</quote> results, and implement trigger functions and
procedural-language call handlers. For more details see
procedural-language call handlers. Version-1 code is also more
portable than version-0, because it does not break ANSI C restrictions
on function call protocol. For more details see
<filename>src/backend/utils/fmgr/README</filename> in the source
distribution.
</para>
...
...
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