Обсуждение: pgsql: Tweak buffer manager so that 'internal' accesses to a buffer do

Поиск
Список
Период
Сортировка

pgsql: Tweak buffer manager so that 'internal' accesses to a buffer do

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Tweak buffer manager so that 'internal' accesses to a buffer do not
advance its usage_count.  This includes writes of dirty buffers triggered
by bgwriter, checkpoint, or FlushRelationBuffers, as well as various
corner cases that really ought not count as accesses to the page.
Should make for some marginal improvement in the quality of our decisions
about when to recycle buffers.  Per suggestion from ITAGAKI Takahiro.

Modified Files:
--------------
    pgsql/src/backend/storage/buffer:
        bufmgr.c (r1.197 -> r1.198)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/buffer/bufmgr.c.diff?r1=1.197&r2=1.198)