Re: modifying the tbale function

From: Richard Huxton <dev(at)archonet(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Neil Conway <neilc(at)samurai(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Islam Hegazy <islheg(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: modifying the tbale function
Date: 2007-03-19 16:25:19
Message-ID: 45FEB96F.4020307@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan wrote:
>
> Actually, I think we could teach the PLs to do it - just not
> transparently, so we'd need to mark which functions used the new
> protocol. Such functions would get a state object as an implied first
> argument, so in plperl it might work like this (for a
> generate_series-like function):

> To support this I think we'd need to do something like:
>
> create function mygs(int, int)
> returns setof int
> language plperl
> with srfstate
> as $$ ... $$;

Is this not what we do with aggregate functions at present?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-03-19 16:36:28 Re: modifying the tbale function
Previous Message Eric 2007-03-19 16:16:46 Re: initdb fails - postgresql does not support leap seconds