Re: Move unused buffers to freelist - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Move unused buffers to freelist
Date
Msg-id 519F7EC6.4050703@nasby.net
Whole thread Raw
In response to Move unused buffers to freelist  (Amit Kapila <amit.kapila@huawei.com>)
Responses Re: Move unused buffers to freelist  (Amit kapila <amit.kapila@huawei.com>)
List pgsql-hackers
On 5/14/13 8:42 AM, Amit Kapila wrote:
> In the attached patch, bgwriter/checkpointer moves unused (usage_count =0 && refcount = 0) buffer’s to end of
freelist.I have implemented a new API StrategyMoveBufferToFreeListEnd() to
 
>
> move buffer’s to end of freelist.
>

Instead of a separate function, would it be better to add an argument to StrategyFreeBuffer? ISTM this is similar to
theother strategy stuff in the buffer manager, so perhaps it should mirror that...
 
-- 
Jim C. Nasby, Data Architect                       jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Cost limited statements RFC
Next
From: Andres Freund
Date:
Subject: Re: getting rid of freezing