Re: Adding an LWLockHeldByMe()-like function that reports if anybuffer content lock is held

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Adding an LWLockHeldByMe()-like function that reports if anybuffer content lock is held
Дата
Msg-id CAH2-WznbrnEHXPAK0xx8vhPtdUE7yXqtNYdbbR4=Dn_pgzv94g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Adding an LWLockHeldByMe()-like function that reports if anybuffer content lock is held  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Wed, Apr 18, 2018 at 6:53 PM, Michael Paquier <michael@paquier.xyz> wrote:
>> I'm curious about what we'll find by just by adding
>> Assert(!AnyBufferLockHeldByMe()) to the top of
>> heap_tuple_fetch_attr(). AssertNotInCriticalSection() certainly found
>> several bugs when it was first added.
>
> Yep.

I wrote a simple prototype of this. No assertion failed during a "make
installcheck". Assertions were added to heap_tuple_fetch_attr(), and a
couple of other places.

-- 
Peter Geoghegan


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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: VM map freeze corruption
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: Postgres 10 problem with UNION ALL of null value in "subselect"