Re: function::plpgsql::returning resultset

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Emmanuel SARACCO <emmanuel(dot)saracco(at)d-interactive(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: function::plpgsql::returning resultset
Date: 2001-09-15 02:35:49
Message-ID: Pine.BSO.4.10.10109142234520.31711-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 11 Sep 2001, Emmanuel SARACCO wrote:

> hi,
>
> how can I write a plpgsql function who return the entire rows of a table?
> for example, if I want to return all the lines in SELECT * FROM mytable.
>
> it seems to be possible with a C function, but is it possible too with a
> plpgsql function?
Not currently.

In 7.2, you will be able to return a cursor, which is probably good enough
for your purposes (when the ultimate result is a SQL query).

If you want to build rows 'by hand', not yet, but its being worked on.

-alex

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Pilosov 2001-09-15 02:38:00 CLUSTER (was Re: get certain # of recs)
Previous Message cnliou 2001-09-15 01:27:18 Re: cache lookup failed