From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Petr Jelinek <petr@2ndquadrant.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
Date: Mon, 29 Dec 2014 12:50:23 +0200
Message-ID: <54A131EF.3080600@vmware.com> (raw)
In-Reply-To: <54A12F5F.2030503@2ndquadrant.com>
References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org>
<54802C7F.90606@vmware.com>
<5480427A.1080200@2ndquadrant.com>
<548044CF.5010809@vmware.com>
<548049D5.1000605@2ndquadrant.com>
<54805306.4030100@vmware.com>
<CAB7nPqQHCUmWD-2iGbTp27kNhFXwNau60Vyw3+XpBr=AeBTRDg@mail.gmail.com>
<548860B6.50705@2ndquadrant.com>
<5493F04C.6090900@2ndquadrant.com>
<54A1278F.8070608@vmware.com>
<20141229101646.GB16114@alap3.anarazel.de>
<54A12F5F.2030503@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 12/29/2014 12:39 PM, Petr Jelinek wrote:
> On 29/12/14 11:16, Andres Freund wrote:
>> On 2014-12-29 12:06:07 +0200, Heikki Linnakangas wrote:
>>> To be honest, I think this patch should be reverted. Instead, we should
>>> design a system where extensions can define their own SLRUs to store
>>> additional per-transaction information. That way, each extension can have as
>>> much space per transaction as needed, and support functions that make most
>>> sense with the information. Commit timestamp tracking would be one such
>>> extension, and for this node ID stuff, you could have another one (or
>>> include it in the replication extension).
>>
>> If somebody wants that they should develop it. But given that we, based
>> on previous discussions, don't want to run user defined code in the
>> relevant phase during transaction commit *and* replay I don't think it'd
>> be all that easy to do it fast and flexible.
>
> Right, I would love to have custom SLRUs but I don't see it happening
> given those two restrictions, otherwise I would write the CommitTs patch
> that way in the first place...
Transaction commit and replay can treat the per-transaction information
as an opaque blob. It just needs to be included in the commit record,
and replay needs to write it to the SLRU. That way you don't need to run
any user-defined code in those phases.
- Heikki
--
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: hlinnakangas@vmware.com, petr@2ndquadrant.com, andres@2ndquadrant.com, michael.paquier@gmail.com, alvherre@alvh.no-ip.org, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
In-Reply-To: <54A131EF.3080600@vmware.com>
References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org> <54802C7F.90606@vmware.com> <5480427A.1080200@2ndquadrant.com> <548044CF.5010809@vmware.com> <548049D5.1000605@2ndquadrant.com> <54805306.4030100@vmware.com> <CAB7nPqQHCUmWD-2iGbTp27kNhFXwNau60Vyw3+XpBr=AeBTRDg@mail.gmail.com> <548860B6.50705@2ndquadrant.com> <5493F04C.6090900@2ndquadrant.com> <54A1278F.8070608@vmware.com> <20141229101646.GB16114@alap3.anarazel.de> <54A12F5F.2030503@2ndquadrant.com> <54A131EF.3080600@vmware.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