Re: Move unused buffers to freelist

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Move unused buffers to freelist
Дата
Msg-id 519E873D.5000406@nasby.net
обсуждение исходный текст
Ответ на Re: Move unused buffers to freelist  (Greg Smith <greg@2ndQuadrant.com>)
Ответы Re: Move unused buffers to freelist
Список 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 по дате отправления:

Предыдущее
От: David Powers
Дата:
Сообщение: Re: streaming replication, "frozen snapshot backup on it" and missing relfile (postgres 9.2.3 on xfs + LVM)
Следующее
От: Sergey Konoplev
Дата:
Сообщение: Re: WAL segments (names) not in a sequence