Re: HOT patch - version 11

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: HOT patch - version 11
Дата
Msg-id 1186065452.4161.2.camel@ebony.site
обсуждение исходный текст
Ответ на Re: HOT patch - version 11  (Heikki Linnakangas <heikki@enterprisedb.com>)
Список pgsql-patches
On Wed, 2007-08-01 at 21:09 +0100, Heikki Linnakangas wrote:

> In heap_page_prune_defrag, it would be better to do the test for
> BufferIsLockedForCleanup right after acquiring the lock. The longer the
> delay between those steps, the bigger the chances that someone pins the
> page and starts to wait for the buffer lock, making us think that we
> didn't get the cleanup lock, though we actually did. Maybe a nicer
> solution would be to have another version of ConditionalLockBuffer with
> three different return values: didn't get lock, got exclusive lock, or
> got cleanup lock.

Yeh, 3-value return seems neatest way.

--
  Simon Riggs
  EnterpriseDB  http://www.enterprisedb.com


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: enable logging of start time/cookie for all backend processes
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Memory leak in tuplestore_end()