Re: Usage of epoch in txid_current - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Usage of epoch in txid_current
Date
Msg-id CBC16911-4F09-4C74-9549-6A2D12854F0B@anarazel.de
Whole thread Raw
In response to Re: Usage of epoch in txid_current  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers

On December 5, 2017 10:01:43 AM PST, Stephen Frost <sfrost@snowman.net> wrote:
>Andres,
>
>* Andres Freund (andres@anarazel.de) wrote:
>> I think it makes a fair bit of sense to not do the current crufty
>> tracking of xid epochs. I don't really how we got there, but it
>doesn't
>> make terribly much sense. Don't think we need additional WAL logging
>> though - we should be able to piggyback this onto the already
>existing
>> clog logging.

>
>Don't you mean xact logging? ;)

No. We log a WAL record at clog boundaries. Wraparounds have to be at one. We could just include the 64 bit xid there
andwould have reliable tracking. 

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] parallel.c oblivion of worker-startup failures
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Transaction control in procedures