OSDN Git Service

Tweak buffer manager so that 'internal' accesses to a buffer do not
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Oct 2005 17:07:58 +0000 (17:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Oct 2005 17:07:58 +0000 (17:07 +0000)
commitfbbe00242ddee79a6ab453300a8a7b82857af0ad
tree958bda95d769dba9aee37ea798274769291c1a70
parentbc93b3741d044a10d4947de8a59ef6d7dfc46cfb
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.
src/backend/storage/buffer/bufmgr.c