calculating an aspect of shared buffer state from a background worker

Поиск
Список
Период
Сортировка
От Robert Berry
Тема calculating an aspect of shared buffer state from a background worker
Дата
Msg-id CAM=RetE0BUD_oySSOY45hovw1wTZqAm3xWct=Pw=ejJN0WV6-w@mail.gmail.com
обсуждение исходный текст
Ответы Re: calculating an aspect of shared buffer state from a background worker  (Michael Paquier <michael.paquier@gmail.com>)
Re: calculating an aspect of shared buffer state from a background worker  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Dear Hackers --

I'm looking at doing a calculation to determine the number of free buffers available.  A n example ratio that is based on some data structures in freelist.c as follows:

(StrategyControl->lastFreeBuffer - StrategyControl->firstFreeBuffer) / (double) NBuffers

Is there a way to get access to the StrategyControl pointer in the context of a background worker?  

Thanks,
Robert

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: review: psql command copy count tag
Следующее
От: Rajeev rastogi
Дата:
Сообщение: Re: [review] PostgreSQL Service on Windows does not start if data directory given is relative path