Re: pgsql: Remove inappropriate memory context switch in

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Remove inappropriate memory context switch in
Дата
Msg-id 12421.1228080543@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Remove inappropriate memory context switch in  ("Neil Conway" <neilc@samurai.com>)
Список pgsql-committers
"Neil Conway" <neilc@samurai.com> writes:
> On Sun, Nov 30, 2008 at 1:09 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Well, dblink is simply calling SRF_RETURN_DONE() when the current
> context is the multi-call memory context.

So I see.

> We could outlaw that
> practice, but that risks breaking out-of-tree SRFs that do something
> similar.

No, they're already broken; this is just making the breakage more
obvious.  It is not kosher for a SQL-callable function to return with
a different current context than it was called in.

            regards, tom lane

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

Предыдущее
От: "Neil Conway"
Дата:
Сообщение: Re: pgsql: Remove inappropriate memory context switch in
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Remove inappropriate memory context switch in