Re: age(xid) on hot standby

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: age(xid) on hot standby
Дата
Msg-id CA+U5nMJPeFs2YnCBrcMUdum7BAhqhxLHmpW340ne43RfY9jBYQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: age(xid) on hot standby  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 9 May 2012 15:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>>> We should just use MyPgXact->xid
>>> rather than add more to the transaction path
>>>
>>> I'll simplify the patch and commit.
>
>> Committed, but forgot to give appropriate credit. Sorry about that.
>
> This patch didn't fix things, it broke things.  The former guarantee
> that age's reference point would hold still throughout a transaction
> just disappeared.
>
> What I read your previous suggestion to be was that age() would keep
> local state and use inspection of the current VXID to tell if its
> cache was stale.  That would keep the fix localized (which I agree
> is a good idea) without losing the stability guarantee.

Gotcha. Will fix.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: synchronous_commit and remote_write
Следующее
От: Robert Haas
Дата:
Сообщение: Re: synchronous_commit and remote_write