Re: [HACKERS] recent deadlock regression test failures

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: [HACKERS] recent deadlock regression test failures
Дата
Msg-id CACjxUsOoFB+3K5UmiGEW3fhfaHJ9hb3YqWJ=+GWYGdLTReqMOA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] recent deadlock regression test failures  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
On Fri, Apr 7, 2017 at 9:24 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:

> 2.  Did I understand correctly that it is safe to scan the list of
> SERIALIZABLEXACTs and access the possibleUnsafeConflicts list while
> holding only SerializableXactHashLock,

Yes.

> and that 'inLink' is the correct link to be following?

If you're starting from the blocked (read-only) transaction (which
you are), inLink is the one to follow.

Note: It would be better form to use the SxactIsDeferrableWaiting()
macro than repeat the bit-testing code directly in your function.

--
Kevin Grittner



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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: [HACKERS] [PATCH] Add GUCs for predicate lock promotion thresholds
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] Remaining 2017-03 CF entries