Re: Bug in new buffer freelist code

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Bug in new buffer freelist code
Дата
Msg-id 878ykjpnqt.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: Bug in new buffer freelist code  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Bug in new buffer freelist code  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:
> It might be a good idea to rename BM_FREE to something else, perhaps
> BM_UNPINNED, since I can recall being confused about what it meant
> too.

If all it indicates is refcount == 0, ISTM we can just get rid of it
altogether, and just check the shared refcount directly.

> Also, if Jan likes the idea of adding a flag bit for this purpose,
> maybe there should be a flag bit associated with each of the ARC
> freelists, so you can tell positively where a "free" buffer is
> supposed to be.

Seems like a good idea to me...

-Neil



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: Dumb question: How do I determine programmatically
Следующее
От: Kurt Roeckx
Дата:
Сообщение: Re: Brokenness in parsing of pg_hba.conf