Re: tracking commit timestamps

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Petr Jelinek <petr(at)2ndquadrant(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Subject: Re: tracking commit timestamps
Date: 2014-11-01 17:45:28
Message-ID: 20141101174528.GU13584@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

On 2014-11-01 14:41:02 +0100, Petr Jelinek wrote:
> On 01/11/14 14:00, Michael Paquier wrote:
> >
> >More comments:
> >- Heikki already mentioned it, but after reading the code I see little
> >point in having the extra field implementing like that in core for many
> >reasons even if it is *just* 4 bytes:
> >1) It is untested and actually there is no direct use for it in core.
> >2) Pushing code that we know as dead is no good, that's a feature more
> >or less defined as maybe-useful-but-we-are-not-sure-yet-what-to-do-with-it.
> >3) If you're going to re-use this API in BDR, which is a fork of
> >Postgres. You'd better complete this API in BDR by yourself and not
> >bother core with that.
> >For those reasons I think that this extra field should be ripped off
> >from the patch.
>
> Well this is not BDR specific thing, the idea is that with logical
> replication, commit timestamp is not enough for conflict handling, you also
> need to have additional info in order to identify some types of conflicts
> conflicts (local update vs remote update for example). So the extradata
> field was meant as something that could be used to add the additional info
> to the xid.
>
> But I see your point, I think solving this issue can be left to the
> replication identifier patch that is discussed in separate thread.

For me this really hasn't anything directly to do with replication
identifiers, so delaying this decision doesn't make sense to me.

Greetings,

Andres Freund

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-11-01 17:55:04 Re: group locking: incomplete patch, just for discussion
Previous Message Andres Freund 2014-11-01 17:44:42 Re: tracking commit timestamps

Browse pgsql-www by date

  From Date Subject
Next Message Magnus Hagander 2014-11-02 10:26:53 Re: Deal with <>s in message IDs
Previous Message Andres Freund 2014-11-01 17:44:42 Re: tracking commit timestamps