pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Mintoo Lall <tlqmail@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Returning multiple rows from plpgsql function
Date: Mon, 17 Feb 2003 12:18:20 -0800 (PST)
Message-ID: <20030217121738.F9891-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20030217200713.84465.qmail@web14809.mail.yahoo.com>


On Mon, 17 Feb 2003, Mintoo Lall wrote:

> How can I return multiple rows from a plpqsql function. I wanted to
> write a function which gives me the result of the final select query
> from a bunch of nested select queries. What return type should use?
> The return type %ROWTYPE only returns a single row. In SQL function I
> can do this by stating that the function returns a setof record but it
> doesnt work in plpgsql function.

You might want to look at the Set Returning Functions document at
techdocs.postgresql.org.




view thread (2+ messages)

Message-ID: <20030217121738.F9891-100000@megazone23.bigpanda.com>
Permalink:  ../20030217121738.F9891-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030217121738.F9891-100000@megazone23.bigpanda.com

 · 

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-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, tlqmail@yahoo.com
  Subject: Re: Returning multiple rows from plpgsql function
  In-Reply-To: <20030217121738.F9891-100000@megazone23.bigpanda.com>

* 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