pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Bruce Momjian <bruce@momjian.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Neil Conway <neilc@samurai.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Two fixes for plpgsql.sgml
Date: Wed, 28 Nov 2007 23:42:16 +0100
Message-ID: <474DEEC8.80502@lelarge.info> (raw)
In-Reply-To: <200711282147.lASLlxR10356@momjian.us>
References: <200711282147.lASLlxR10356@momjian.us>

Bruce Momjian a écrit :
> Alvaro Herrera wrote:
>>[...]
>> The point of "any datatype they can return a single instance of" is that
>> this can be a set of scalar values (e.g. "RETURNS SETOF int") or of a
>> complex type ("RETURNS SETOF table"), or anything else they can return a
>> single instance of :-P (SETOF anyelement?  SETOF table%TYPE?)
> 
> Good idea, updated:
> 
>      <application>PL/pgSQL</> functions can also be declared to return
>      a <quote>set</> (or table) of any data type that can be returned as
>      a single instance.  Such a function generates its output by executing
>      <command>RETURN NEXT</> for each desired element of the result
>      set, or by using <command>RETURN QUERY</> to output the result of
>      evaluating a query.
> 

Great. Now I better understand this part. Thank you all.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com



view thread (9+ messages)

Message-ID: <474DEEC8.80502@lelarge.info>
Permalink:  ../474DEEC8.80502@lelarge.info/
Also on:    postgresql.org/message-id/474DEEC8.80502@lelarge.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: guillaume@lelarge.info, bruce@momjian.us, alvherre@alvh.no-ip.org, tgl@sss.pgh.pa.us, neilc@samurai.com
  Subject: Re: Two fixes for plpgsql.sgml
  In-Reply-To: <474DEEC8.80502@lelarge.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox