Re: bgwriter leaks resources after errors

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: bgwriter leaks resources after errors
Дата
Msg-id dna0dh$1lrp$1@news.hub.org
обсуждение исходный текст
Ответ на bgwriter leaks resources after errors  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> wrote
>
> The cleanest solution seems to be to make the bgwriter create and use a
> ResourceOwner, and probably get rid of the special hack in resowner.c
> that allows CurrentResourceOwner to be NULL.
>

Is that true that every moment the bgwriter just has one buffer pinned? Then 
remember that buffer is enough. This could avoid using ResourceOwner but it 
may need some hack into pin/unpin.

Regards,
Qingqing 




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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: HOOKS for Synchronous Replication?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: generalizing the planner knobs