Increase of buffers usage count by bgwriter

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Increase of buffers usage count by bgwriter
Дата
Msg-id 20051026133803.495B.ITAGAKI.TAKAHIRO@lab.ntt.co.jp
обсуждение исходный текст
Ответы Re: Increase of buffers usage count by bgwriter  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi Hackers,

I found that bgwriter increments usage count of buffers when it writes
the buffers. I feel this behavior is strange, because the behavior of
bgwriter will affect buffer management strategy.
When backends write LRU dirty buffers, they are replaced immediately.
However, when bgwriter writes dirty buffer, the replacement is postponed
until the next rotation of CLOCK.


If the behavior is not intended, another UnpinBuffer that doesn't
increase the buffers usage count will be needed.
Otherwise, bgwriter should do behavior that looks like VACUUM, 
using StrategyHintVacuum(true).


I'll appreciate any comments.
Thanks,
---
ITAGAKI Takahiro
NTT Cyber Space Laboratories



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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: PQescapeIdentifier
Следующее
От: Andrew - Supernews
Дата:
Сообщение: Re: add_missing_from breaks existing views