Re: modifying the tbale function

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: modifying the tbale function
Дата
Msg-id 45FEB96F.4020307@archonet.com
обсуждение исходный текст
Ответ на Re: modifying the tbale function  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: modifying the tbale function  (Andrew Dunstan <andrew@dunslane.net>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: CREATE INDEX and HOT (was Question:pg_classattributes and race conditions ?)
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: modifying the tbale function