Re: Usage of epoch in txid_current

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Usage of epoch in txid_current
Дата
Msg-id CAMsr+YG5hxJjonNz-hcgzKakZd06LSL9t2593T87Q1--coCM0g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Usage of epoch in txid_current  (Craig Ringer <craig@2ndquadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Usage of epoch in txid_current
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Usage of epoch in txid_current