Re: age(xid) on hot standby

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: age(xid) on hot standby
Дата
Msg-id 1336503661.23272.4.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: age(xid) on hot standby  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: age(xid) on hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On ons, 2012-01-18 at 14:55 -0500, Tom Lane wrote:
> BTW, it strikes me that maybe the coding should work about like this:
>
>     if (!TransactionIdIsValid(age_reference_xid))
>     {
>         age_reference_xid = GetTopTransactionIdIfAny();
>         if (!TransactionIdIsValid(age_reference_xid))
>             age_reference_xid = ReadNewTransactionId();
>     }
>     ... use age_reference_xid to compute result ...
>
> and of course code somewhere to reset age_reference_xid at end of xact.

How about this patch?


Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: more possible dead ports cleanup
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Latch for the WAL writer - further reducing idle wake-ups.