Re: Should we add xid_current() or a int8->xid cast?
От | Tom Lane |
---|---|
Тема | Re: Should we add xid_current() or a int8->xid cast? |
Дата | |
Msg-id | 9204.1564014879@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Should we add xid_current() or a int8->xid cast? (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Should we add xid_current() or a int8->xid cast?
|
Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes: > On 2019-07-25 12:20:58 +1200, Thomas Munro wrote: >> On Thu, Jul 25, 2019 at 12:06 PM Andres Freund <andres@anarazel.de> wrote: >>> Seems easiest to just add xid_current(), or add a cast from int8 to xid >>> (probably explicit?) that handles the wraparound logic correctly? >> Yeah, I was wondering about that. int8 isn't really the right type, >> since FullTransactionId is unsigned. > For now that doesn't seem that big an impediment... Yeah, I would absolutely NOT recommend that you open that can of worms right now. We have looked at adding unsigned integer types in the past and it looked like a mess. I think an explicit cast is a reasonable thing to add, though. regards, tom lane
В списке pgsql-hackers по дате отправления: