Re: [PATCH] bigint txids vs 'xid' type, new txid_recent(bigint) => xid

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] bigint txids vs 'xid' type, new txid_recent(bigint) => xid
Date: 2016-08-16 13:44:18
Message-ID: CAMsr+YEVRL2cX8YtvRjTi6V_zZMAdtr0CO8JXRw1Bu=iKTpOzQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16 August 2016 at 20:58, Greg Stark <stark(at)mit(dot)edu> wrote:

> On Tue, Aug 16, 2016 at 10:15 AM, Craig Ringer <craig(at)2ndquadrant(dot)com>
> wrote:
> > I'm surprised the 32-bit xid was ever exposed to the user, rather than a
> > 64-bit epoch-extended xid.
>
> Once upon a time we didn't have epoch counting at all.
>

Makes sense. I didn't dig back too far in history.

Sounds like you're in favour of the 2nd part of the proposal (not covered
by the current patch) then.

I haven't yet done the validation required on the epoch logic btw, and I
won't be too surprised if it's a bit off. I'm writing a fast xid burn
function for use in testing now. I doubt it'll be fast enough to use in
routine regression testing since all those clog pages will still take time.
But we'll see. I'd kind of like to be able to avoid all that - advance the
xid counter and treat all the old xids as frozen. I don't know or if this
is practical within a normal backend though.

Anyway, will follow up with more tests and - probably - a bugfix or three
soon.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Eckhardt 2016-08-16 14:05:21 Re: Declarative partitioning - another take
Previous Message Tom Lane 2016-08-16 13:37:54 Re: [RFC] Change the default of update_process_title to off