FAQ

Instead, I suggest modifying BgBufferSync, specifically this part right
here:

else if (buffer_state & BUF_REUSABLE)
reusable_buffers++;

What I would suggest is that if the BUF_REUSABLE flag is set here, use
that as the trigger to do StrategyMoveBufferToFreeListEnd().
I think at this point also we need to lock buffer header to check refcount
and usage_count before moving to freelist, or do you think it is not
required?
If BUF_REUSABLE is set, that means we just did exactly what you're
saying. Why do it twice?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 14 of 37 | next ›
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedMay 14, '13 at 1:45p
activeAug 6, '13 at 6:19a
posts37
users7
websitepostgresql.org...
irc#postgresql

People

Translate

site design / logo © 2021 Grokbase