From: Marko Kreen Date: Mon, 21 Jul 2008 14:05:23 +0000 (+0000) Subject: docs: tag all functions with embedded SELECT with SETOF X-Git-Tag: plproxy_2_0_6~12 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=4472f8d8ed0bcfd2e899c778010644155fe8b8d8;p=plproxy.git docs: tag all functions with embedded SELECT with SETOF --- diff --git a/doc/overview.txt b/doc/overview.txt index 1459040..e967c5e 100644 --- a/doc/overview.txt +++ b/doc/overview.txt @@ -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); diff --git a/doc/tutorial.txt b/doc/tutorial.txt index 0c794c9..b2a6351 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -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;