Re: calculating an aspect of shared buffer state from a background worker

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: calculating an aspect of shared buffer state from a background worker
Дата
Msg-id CAB7nPqT9QvyFyRs3YhQow7sPteY3c0pjpeyUdHMei41HzR_NKA@mail.gmail.com
обсуждение исходный текст
Ответ на calculating an aspect of shared buffer state from a background worker  (Robert Berry <berrydigital@gmail.com>)
Список pgsql-hackers
On Mon, Mar 10, 2014 at 2:09 PM, Robert Berry <berrydigital@gmail.com> wrote:
> Is there a way to get access to the StrategyControl pointer in the context
> of a background worker?
StrategyControl is inherent to freelist.c and has no external
declaration so you could not have it even if you the
BGWORKER_SHMEM_ACCESS flag. In order to calculate that, an idea could
be to go through the array of BufferDescriptors and then get the
information necessary. Locks are necessary when doing that if you want
to get a consistent picture of the buffers. Perhaps more experienced
people have better ideas though...
Regards,
-- 
Michael



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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: UNION ALL on partitioned tables won't use indices.
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: Get more from indices.