Re: Add progressive backoff to XactLockTableWait functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Add progressive backoff to XactLockTableWait functions
Дата
Msg-id 1593356.1754590833@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Add progressive backoff to XactLockTableWait functions  (Xuneng Zhou <xunengzhou@gmail.com>)
Ответы Re: Add progressive backoff to XactLockTableWait functions
Список pgsql-hackers
Xuneng Zhou <xunengzhou@gmail.com> writes:
> V9 replaces the original partitioned xid-wait htab with a single,
> unified one, reflecting the modest entry count and rare contention for
> waiting. To prevent possible races when multiple backends wait on the
> same XID for the first time in XidWaitOnStandby, a dedicated lock has
> been added to protect the hash table.

This seems like adding quite a lot of extremely subtle code in
order to solve a very small problem.  I thought the v1 patch
was about the right amount of complexity.

            regards, tom lane



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