Re: [HACKERS] recent deadlock regression test failures

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] recent deadlock regression test failures
Дата
Msg-id 3614.1491699234@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] recent deadlock regression test failures  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
... BTW, one other minor coding suggestion for
GetSafeSnapshotBlockingPids(): it might be better to avoid doing so much
palloc work while holding the SerializableXactHashLock.  Even if it's
only held shared, I imagine that it's a contention bottleneck.  You
could avoid that by returning an array rather than a list; the array
could be preallocated of size MaxBackends before ever taking the lock.
That would be a little bit space-wasteful, but since it's only short-lived
storage it doesn't seem like much of a problem.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] recent deadlock regression test failures
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: [HACKERS] [sqlsmith] Planner crash on foreign table join