Re: missing LockBuffer(buffer, BUFFER_LOCK_SHARE) in trigger.c GetTupleForTrigger?

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Re: missing LockBuffer(buffer, BUFFER_LOCK_SHARE) in trigger.c GetTupleForTrigger?
Дата
Msg-id CABOikdMr7sWR7FSR-MuJokE3h8eWYM5JvoB42G9+6QAKE7BGxw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: missing LockBuffer(buffer, BUFFER_LOCK_SHARE) in trigger.c GetTupleForTrigger?  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers


On Fri, Nov 30, 2012 at 6:55 PM, Andres Freund <andres@2ndquadrant.com> wrote:


Hm? It doesn't move the page contents around but it moves the ItemId
array during completely normal operation (c.f. needshuffle in
PageAddItem). Or am I missing something?


I think that probably only used for non-heap pages. For heap pages, it just doesn't make sense to shuffle the ItemId array. That would defeat the entire purpose of having them in the first place.

Thanks,
Pavan 

--
Pavan Deolasee
http://www.linkedin.com/in/pavandeolasee

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

Предыдущее
От: Markus Wanner
Дата:
Сообщение: Re: Review: Extra Daemons / bgworker
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Review: Extra Daemons / bgworker