Re: Race condition in TransactionIdIsInProgress

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Race condition in TransactionIdIsInProgress
Дата
Msg-id CANbhV-GoknTkBpxt7dVyW_=y7=pwDDWvt62DJ=iAgjzjPss8cw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Race condition in TransactionIdIsInProgress  (Andres Freund <andres@anarazel.de>)
Ответы Re: Race condition in TransactionIdIsInProgress
Список pgsql-hackers
On Fri, 11 Feb 2022 at 06:11, Andres Freund <andres@anarazel.de> wrote:

> Looks lik syncrep will make this a lot worse, because it can drastically
> increase the window between the TransactionIdCommitTree() and
> ProcArrayEndTransaction() due to the SyncRepWaitForLSN() inbetween.  But at
> least it might make it easier to write tests exercising this scenario...

Agreed

TransactionIdIsKnownCompleted(xid) is only broken because the single
item cache is set too early in some cases. The single item cache is
important for performance, so we just need to be more careful about
setting the cache.

-- 
Simon Riggs                http://www.EnterpriseDB.com/



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

Предыдущее
От: Dipesh Pandit
Дата:
Сообщение: Re: refactoring basebackup.c
Следующее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: row filtering for logical replication