docs: tag all functions with embedded SELECT with SETOF
authorMarko Kreen <markokr@gmail.com>
Mon, 21 Jul 2008 14:05:23 +0000 (14:05 +0000)
committerMarko Kreen <markokr@gmail.com>
Mon, 21 Jul 2008 14:05:23 +0000 (14:05 +0000)
doc/overview.txt
doc/tutorial.txt

index 1459040f91b9c5e4c0fbed834dad65077847ce7f..e967c5e6b80bad32d21cb83ccbf6ce43c3fedec5 100644 (file)
@@ -80,7 +80,7 @@ But this can be overrided by giving explicit `SELECT` statement to run.
 
 {{{
 CREATE FUNCTION get_user_location(text)
-RETURNS text AS $$
+RETURNS SETOF text AS $$
 
     CLUSTER 'userdb';
     RUN ON hashtext($1);
index 0c794c9b9974de14c2957cd5db16e59262db7264..b2a6351fdd1474aa319d74487a515911e53bd25e 100644 (file)
@@ -44,7 +44,7 @@ This example  uses plproxy in CONNECT mode, it will
 connect to `dbname=part00` and run following SQL there:
 
   CREATE FUNCTION get_user_email(i_username text)
-  RETURNS text AS $$
+  RETURNS SETOF text AS $$
     CONNECT 'dbname=part00';
     SELECT email FROM users WHERE username = $1;
   $$ LANGUAGE plproxy;
@@ -130,7 +130,7 @@ user's email address will be returned.
 This function should be created in the proxy database.
 
   CREATE OR REPLACE FUNCTION get_user_email(i_username text)
-  RETURNS text AS $$
+  RETURNS SETOF text AS $$
     CLUSTER 'usercluster';
     RUN ON hashtext(i_username) ;
     SELECT email FROM users WHERE username = i_username;