Re: function::plpgsql::returning resultset - Mailing list pgsql-general

From Alex Pilosov
Subject Re: function::plpgsql::returning resultset
Date
Msg-id Pine.BSO.4.10.10109142234520.31711-100000@spider.pilosoft.com
Whole thread Raw
In response to function::plpgsql::returning resultset  ("Emmanuel SARACCO" <emmanuel.saracco@d-interactive.com>)
List 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


pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Abort state on duplicated PKey in transactions
Next
From: Gaurav Priyolkar
Date:
Subject: Re: error while generating and EXECUTEing a query dynamically