Update FAQ.
authorBruce Momjian
Tue, 9 Apr 2002 03:22:11 +0000 (03:22 +0000)
committerBruce Momjian
Tue, 9 Apr 2002 03:22:11 +0000 (03:22 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 0adb4c7a80f892aadf23f0674f191866061a5b0e..78f8312a135085a144a6371fe55c61d472704199 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Mon Mar 18 14:34:57 EST 2002
+   Last updated: Mon Apr 8 23:22:06 EDT 2002
    
    Current maintainer: Bruce Momjian ([email protected])
    
@@ -91,6 +91,7 @@
    4.22) Why are my subqueries using IN so slow?
    4.23) How do I perform an outer join?
    4.24) How do I perform queries using multiple databases?
+   4.25) How do I return multiple rows or columns from a function?
    
                             Extending PostgreSQL
                                       
@@ -1017,6 +1018,13 @@ SELECT *
    databases and merge the information that way.
      _________________________________________________________________
    
+    4.25) How do I return multiple rows or columns from a function?
+    
+   You can return result sets from PL/pgSQL functions using refcursors.
+   See
+   http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql-cursors.html,
+   section 23.7.3.3.
+   
                             Extending PostgreSQL
                                       
     5.1) I wrote a user-defined function. When I run it in psql, why does it
index eabeb110a1e171fcc7aa0a90993e248378e4fa87..ac3b455de4fd6641122c689ec95ef9a8525dc391 100644 (file)
@@ -14,7 +14,7 @@
   alink="#0000ff">
     

Frequently Asked Questions (FAQ) for PostgreSQL

 
-    

Last updated: Mon Mar 18 14:34:57 EST 2002

+    

Last updated: Mon Apr  8 23:22:06 EDT 2002

 
     

Current maintainer: Bruce Momjian (

      4.23) How do I perform an outer join?
      4.24) How do I perform queries using multiple
     databases?
+     4.25) How do I return multiple rows or columns
+     from a function?
      
 
     Extending PostgreSQL
@@ -1299,6 +1301,16 @@ BYTEA           bytea           variable-length byte array (null-byte safe)
     different databases and merge the information that way.

     
 
+    

4.25) How do I return multiple rows or columns

+     from a function?
+
+     

You can return result sets from PL/pgSQL functions using

+     refcursors. See 
+     href="http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql-cursors.html">
+     http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql-cursors.html,
+     section 23.7.3.3.

+
+     
     Extending PostgreSQL
 
     

5.1) I wrote a user-defined function. When I