Update for tables returning function, item 5.3, from Joe Conway.
authorBruce Momjian
Thu, 17 Oct 2002 23:34:10 +0000 (23:34 +0000)
committerBruce Momjian
Thu, 17 Oct 2002 23:34:10 +0000 (23:34 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 56d907042dd73d0da39480862c83f32ad3935c6f..0a11568350ecbd421165e605ef4639ef49c088d2 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 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 ([email protected])
    
@@ -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?
     
-   This requires wizardry so extreme that the authors have never tried
-   it, though in principle it can be done.
+   In versions of PostgreSQL beginning with 7.3, table-returning
+   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
     change?
index b8b24ccae02bf909a4f6502556e69a0da660eb4c..879e9072142c525399a261e8ef0314fb2af1a1ad 100644 (file)
@@ -14,7 +14,7 @@
   alink="#0000ff">
     

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 (

@@ -1408,8 +1408,11 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     

5.3) How do I write a C function to return a

     tuple?
 
-    

This requires wizardry so extreme that the authors have never

-    tried it, though in principle it can be done.

+    

In versions of PostgreSQL beginning with 7.3, table-returning

+    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 change?