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

From Jim Nasby
Subject Re: Move unused buffers to freelist
Date
Msg-id 519E873D.5000406@nasby.net
Whole thread Raw
In response to Re: Move unused buffers to freelist  (Greg Smith <greg@2ndQuadrant.com>)
Responses Re: Move unused buffers to freelist  (Amit Kapila <amit.kapila@huawei.com>)
List pgsql-hackers
On 5/14/13 2:13 PM, Greg Smith wrote:
> It is possible that we are told to put something in the freelist that
> is already in it; don't screw up the list if so.
>
> I don't see where the code does anything to handle that though.  What was your intention here?

IIRC, the code that pulls from the freelist already deals with the possibility that a block was on the freelist but has
sincebeen put to use. If that's the case then there shouldn't be much penalty to adding a block multiple times (at
leastwithin reason...)
 
-- 
Jim C. Nasby, Data Architect                       jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net



pgsql-hackers by date:

Previous
From: David Powers
Date:
Subject: Re: streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)
Next
From: Sergey Konoplev
Date:
Subject: Re: WAL segments (names) not in a sequence