Commit 2aeebfc6 authored by Bruce Momjian's avatar Bruce Momjian

Update FAQ.

parent 0325149a
Frequently Asked Questions (FAQ) for PostgreSQL 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 (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
4.22) Why are my subqueries using IN so slow? 4.22) Why are my subqueries using IN so slow?
4.23) How do I perform an outer join? 4.23) How do I perform an outer join?
4.24) How do I perform queries using multiple databases? 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 Extending PostgreSQL
...@@ -1017,6 +1018,13 @@ SELECT * ...@@ -1017,6 +1018,13 @@ SELECT *
databases and merge the information that way. 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 Extending PostgreSQL
5.1) I wrote a user-defined function. When I run it in psql, why does it 5.1) I wrote a user-defined function. When I run it in psql, why does it
......
...@@ -14,7 +14,7 @@ ...@@ -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: Mon Mar 18 14:34:57 EST 2002</P> <P>Last updated: Mon Apr 8 23:22:06 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>
...@@ -137,6 +137,8 @@ ...@@ -137,6 +137,8 @@
<A href="#4.23">4.23</A>) How do I perform an outer join?<BR> <A href="#4.23">4.23</A>) How do I perform an outer join?<BR>
<A href="#4.24">4.24</A>) How do I perform queries using multiple <A href="#4.24">4.24</A>) How do I perform queries using multiple
databases?<BR> databases?<BR>
<A href="#4.25">4.25</A>) How do I return multiple rows or columns
from a function?<BR>
<H2 align="center">Extending PostgreSQL</H2> <H2 align="center">Extending PostgreSQL</H2>
...@@ -1299,6 +1301,16 @@ BYTEA bytea variable-length byte array (null-byte safe) ...@@ -1299,6 +1301,16 @@ BYTEA bytea variable-length byte array (null-byte safe)
different databases and merge the information that way.</P> different databases and merge the information that way.</P>
<HR> <HR>
<H4><A name="4.25">4.25</A>) How do I return multiple rows or columns
from a function?</H4>
<P>You can return result sets from PL/pgSQL functions using
<i>refcursors</i>. See <a
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,</a>
section 23.7.3.3.</P>
<H2 align="center">Extending PostgreSQL</H2> <H2 align="center">Extending PostgreSQL</H2>
<H4><A name="5.1">5.1</A>) I wrote a user-defined function. When I <H4><A name="5.1">5.1</A>) I wrote a user-defined function. When I
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment