Skip to content

Commit f99e525

Browse files
committed
Update for tables returning function, item 5.3, from Joe Conway.
1 parent b0146a2 commit f99e525

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

doc/FAQ

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: Sun Oct 13 23:15:09 EDT 2002
4+
Last updated: Thu Oct 17 19:33:40 EDT 2002
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -1113,8 +1113,11 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
11131113

11141114
5.3) How do I write a C function to return a tuple?
11151115

1116-
This requires wizardry so extreme that the authors have never tried
1117-
it, though in principle it can be done.
1116+
In versions of PostgreSQL beginning with 7.3, table-returning
1117+
functions are fully supported in C, PL/PgSQL, and SQL. See the
1118+
Programmer's Guide for more information. An example of a
1119+
table-returning function defined in C can be found in
1120+
contrib/tablefunc.
11181121

11191122
5.4) I have changed a source file. Why does the recompile not see the
11201123
change?

doc/src/FAQ/FAQ.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
alink="#0000ff">
1515
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1616

17-
<P>Last updated: Sun Oct 13 23:15:09 EDT 2002</P>
17+
<P>Last updated: Thu Oct 17 19:33:40 EDT 2002</P>
1818

1919
<P>Current maintainer: Bruce Momjian (<A href=
2020
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -1408,8 +1408,11 @@ <H4><A name="5.2">5.2</A>) How can I contribute some nifty new
14081408
<H4><A name="5.3">5.3</A>) How do I write a C function to return a
14091409
tuple?</H4>
14101410

1411-
<P>This requires wizardry so extreme that the authors have never
1412-
tried it, though in principle it can be done.</P>
1411+
<P>In versions of PostgreSQL beginning with 7.3, table-returning
1412+
functions are fully supported in C, PL/PgSQL, and SQL. See the
1413+
Programmer's Guide for more information. An example of a
1414+
table-returning function defined in C can be found in
1415+
contrib/tablefunc.</P>
14131416

14141417
<H4><A name="5.4">5.4</A>) I have changed a source file. Why does
14151418
the recompile not see the change?</H4>

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