Re: concatenating setof functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Frederick Ross" <madhadron(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: concatenating setof functions
Date: 2007-04-16 19:38:54
Message-ID: 9956.1176752334@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Frederick Ross" <madhadron(at)gmail(dot)com> writes:
> But say I have a table with an integer column. If I had a pure SQL
> function, I could call
> select twohundreds(i) from table;
> and get a properly concatenated list of the rows resulting from
> applying twohundreds to each row of table. This is deprecated
> according to the documentation, and it doesn't work at all with
> PLPGSQL, so how should I go about doing it?

I believe you can make an end-run around the implementation restriction
by creating a SQL-language function that's a wrapper around your plpgsql
function.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message garry saddington 2007-04-16 20:33:45 delete with self join
Previous Message Frederick Ross 2007-04-16 19:30:49 concatenating setof functions