Update for tables returning function, item 5.3, from Joe Conway.

This commit is contained in:
Bruce Momjian 2002-10-17 23:34:10 +00:00
parent b0146a2407
commit f99e525f0f
2 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
Frequently Asked Questions (FAQ) for PostgreSQL Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Sun Oct 13 23:15:09 EDT 2002 Last updated: Thu Oct 17 19:33:40 EDT 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
@ -1113,8 +1113,11 @@ CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
5.3) How do I write a C function to return a tuple? 5.3) How do I write a C function to return a tuple?
This requires wizardry so extreme that the authors have never tried In versions of PostgreSQL beginning with 7.3, table-returning
it, though in principle it can be done. functions are fully supported in C, PL/PgSQL, and SQL. See the
Programmer's Guide for more information. An example of a
table-returning function defined in C can be found in
contrib/tablefunc.
5.4) I have changed a source file. Why does the recompile not see the 5.4) I have changed a source file. Why does the recompile not see the
change? change?

View File

@ -14,7 +14,7 @@
alink="#0000ff"> alink="#0000ff">
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1> <H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
<P>Last updated: Sun Oct 13 23:15:09 EDT 2002</P> <P>Last updated: Thu Oct 17 19:33:40 EDT 2002</P>
<P>Current maintainer: Bruce Momjian (<A href= <P>Current maintainer: Bruce Momjian (<A href=
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR> "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@ -1408,8 +1408,11 @@ BYTEA bytea variable-length byte array (null-byte safe)
<H4><A name="5.3">5.3</A>) How do I write a C function to return a <H4><A name="5.3">5.3</A>) How do I write a C function to return a
tuple?</H4> tuple?</H4>
<P>This requires wizardry so extreme that the authors have never <P>In versions of PostgreSQL beginning with 7.3, table-returning
tried it, though in principle it can be done.</P> functions are fully supported in C, PL/PgSQL, and SQL. See the
Programmer's Guide for more information. An example of a
table-returning function defined in C can be found in
contrib/tablefunc.</P>
<H4><A name="5.4">5.4</A>) I have changed a source file. Why does <H4><A name="5.4">5.4</A>) I have changed a source file. Why does
the recompile not see the change?</H4> the recompile not see the change?</H4>