Re: track_commit_timestamp and COMMIT PREPARED

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: track_commit_timestamp and COMMIT PREPARED
Date: 2015-08-04 17:20:55
Message-ID: CA+TgmoZ7C25T+vMLyeEze8Ddx1w3cH76m7orVvr4KObd5f1ghw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 4, 2015 at 1:18 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> On 2015-08-04 13:16:52 -0400, Robert Haas wrote:
>> On Mon, Aug 3, 2015 at 10:31 AM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>> > track_commit_timestamp tracks COMMIT PREPARED as expected in standby server,
>> > but not in master server. Is this intentional? It should track COMMIT PREPARED
>> > even in master? Otherwise, we cannot use commit_timestamp feature to check
>> > the replication lag properly while we use 2PC.
>>
>> That sounds like it must be a bug. I think you should add it to the
>> open items list.
>
> Yea, completely agreed. It's probably because twophase.c duplicates a
> good bit of xact.c. How about we also add a warning to the respective
> places that one should always check the others?

Sounds like a good idea. Or we could try to, heh heh, refactor away
the duplication.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2015-08-04 17:23:20 Re: tablecmds.c and lock hierarchy
Previous Message Alvaro Herrera 2015-08-04 17:20:49 Re: FSM versus GIN pending list bloat