From: Petr Jelinek <petr@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
Date: Thu, 04 Dec 2014 12:16:10 +0100
Message-ID: <5480427A.1080200@2ndquadrant.com> (raw)
In-Reply-To: <54802C7F.90606@vmware.com>
References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org>
<54802C7F.90606@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 04/12/14 10:42, Heikki Linnakangas wrote:
> On 12/03/2014 04:54 PM, Alvaro Herrera wrote:
>> ir commit timestamp directly as they commit,
>> or an external transaction c
>
> Sorry, I'm late to the party, but here's some random comments on this
> after a quick review:
>
> * The whole concept of a node ID seems to be undocumented, and unused.
> No-one calls CommitTsSetDefaultNodeId(). The whole SET_TS record type is
> dead code too, when a non-default node_id is not set. Please remove, or
> explain how all that's supposed to work.
>
That's API meant to be used by extensions, maybe it would be preferable
if there was SQL API exposed also?
(It might also make more sense once replication identifiers are submitted.)
>
> * What is the definition of "latest commit", in
> pg_last_committed_xact()? It doesn't necessarily line up with the order
> of commit WAL records, nor with the order the proc array is updated
> (i.e. the order that the effects become visible to other backends). It
> seems confusing to add yet another notion of commit order. Perhaps
> that's the best we can do, but it needs to be documented.
>
It's updated on CommitTransaction (well RecordTransactionCommit but
that's only called from CommitTransaction) time so the definition of
latest commit is last CommitTransaction call.
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: petr@2ndquadrant.com, hlinnakangas@vmware.com, alvherre@alvh.no-ip.org, pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
In-Reply-To: <5480427A.1080200@2ndquadrant.com>
References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org> <54802C7F.90606@vmware.com> <5480427A.1080200@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox