Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))
Дата
Msg-id CAEepm=3adR-nw+N7eY1H6Xpf3w3VEqoFtbpho2ZK=JfKCfCCPA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))  (Craig Ringer <craig@2ndquadrant.com>)
Re: Assert(LWLockHeldByMeInMode(lock, LW_EXCLUSIVE))  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Hi hackers,

Several times now when reading, debugging and writing code I've wished
that LWLockHeldByMe assertions specified the expected mode, especially
where exclusive locking is required.

What do you think about something like the attached?  See also an
example of use.  I will add this to the next commitfest.

--
Thomas Munro
http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Whether to back-patch fix for aggregate transtype width estimates
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: New design for FK-based join selectivity estimation