Re: pgsql: Remove inappropriate memory context switch in

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: pgsql: Remove inappropriate memory context switch in
Дата
Msg-id b4e5ce320811301326s4ffca1bdhdf29520f3efd340c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Remove inappropriate memory context switch in  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Remove inappropriate memory context switch in  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pgsql: Remove inappropriate memory context switch in  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Sun, Nov 30, 2008 at 1:09 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Hm, too bad you didn't respond to my message inquiring about this a
> couple days ago.

My apologies -- my mail filters were overeager, and I didn't see it.

> I'll take a look in a bit.  However, the switch in the shutdown function
> was simply wrong, because it was *not* "returning to the caller's
> context".  I suspect what this really says is dblink is doing something
> it shouldn't.

Well, dblink is simply calling SRF_RETURN_DONE() when the current
context is the multi-call memory context. We could outlaw that
practice, but that risks breaking out-of-tree SRFs that do something
similar. I think better would be to figure out a more appropriate
memory context to switch into before deleting the multi-call context.

Neil

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

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