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

From Craig Ringer
Subject Re: Usage of epoch in txid_current
Date
Msg-id CAMsr+YG5hxJjonNz-hcgzKakZd06LSL9t2593T87Q1--coCM0g@mail.gmail.com
Whole thread Raw
In response to Re: Usage of epoch in txid_current  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
On 10 July 2018 at 10:32, Craig Ringer <craig@2ndquadrant.com> wrote:
 
 
I think it's probably a good idea to make it very explicit when moving
between big and small transaction IDs, hence the including of the word
'big' in variable and function names and the use of a function-like
macro (rather than implicit conversion, which C doesn't give me a good
way to prevent).

The only way I know of to prevent it is to use a wrapper by-value struct.


... and that's what I get for not finishing the thread before replying. 

Anyway, please consider the other point re txid_current() and the user facing xid type.

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

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Usage of epoch in txid_current
Next
From: Andres Freund
Date:
Subject: Re: Usage of epoch in txid_current