Re: Seq scans status update

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Seq scans status update
Дата
Msg-id 878xb8k3xr.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Seq scans status update  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Seq scans status update  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> A point I have not figured out how to deal with is that in the patch as
> given, UnpinBuffer needs to know the strategy; and getting it that info
> would make the changes far more invasive.  But the patch's behavior here
> is pretty risky anyway, since the strategy global at the time of unpin
> might have nothing to do with how it was set when the buffer was
> acquired.  What I'm tempted to do is remove the special case there and
> adjust buffer acquisition instead (maybe make it decrement the
> usage_count when re-using a buffer from the ring).

Is there a reason UnpinBuffer has to be the one to increment the usage count
anyways? Why can't ReadBuffer handle incrementing the count and just trust
that it won't be decremented until the buffer is unpinned anyways?

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Seq scans status update
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Seq scans status update