Re: Confusing with commit time usage in logical decoding

Поиск
Список
Период
Сортировка
Искать
От
Artur Zakirov
Тема
Re: Confusing with commit time usage in logical decoding
Дата
Msg-id
56D55C46.2040101@postgrespro.ru
Ответ на
Список
Дерево обсуждения
Confusing with commit time usage in logical decoding Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Confusing with commit time usage in logical decoding Artur Zakirov <a.zakirov@postgrespro.ru>
Re: Confusing with commit time usage in logical decoding Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Confusing with commit time usage in logical decoding Petr Jelinek <petr@2ndquadrant.com>
Re: Confusing with commit time usage in logical decoding Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Confusing with commit time usage in logical decoding Andres Freund <andres@anarazel.de>
Re: Confusing with commit time usage in logical decoding Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Confusing with commit time usage in logical decoding Petr Jelinek <petr@2ndquadrant.com>
Re: Confusing with commit time usage in logical decoding Andres Freund <andres@anarazel.de>
Hello, Andres

You have introduced a large replication progress tracking infrastructure 
last year. And there is a problem described at the link in the quote below.

Attached patch fix this issue. Is this patch correct? I will be grateful 
if it is and if it will be committed.

Thanks.

On 29.02.2016 14:18, Artur Zakirov wrote:
> Hello,
>
> I read this message
> http://www.postgresql.org/message-id/56D4197E.9050706@informatik.uni-kl.de
>
> Is this a bug or a typo? In DecodeCommit() in decode.c instead of:
>
> if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
> {
>      origin_lsn = parsed->origin_lsn;
>      commit_time = parsed->origin_timestamp;
> }
>
> should be:
>
> if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
> {
>      origin_lsn = parsed->origin_lsn;
>      commit_time = parsed->origin_timestamp;
> }
> else
>      commit_time = parsed->xact_time;
>


-- 
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
В списке pgsql-hackers по дате отправления
От: Kyotaro HORIGUCHI
Дата:
От: Stas Kelvich
Дата:
Сообщение: transam README small fix
FAQ