Re: [HACKERS] 64-bit queryId?
От | Andres Freund |
---|---|
Тема | Re: [HACKERS] 64-bit queryId? |
Дата | |
Msg-id | 20171003081211.s2cvtmpitmadagya@alap3.anarazel.de обсуждение исходный текст |
Ответ на | Re: [HACKERS] 64-bit queryId? (Michael Paquier <michael.paquier@gmail.com>) |
Список | pgsql-hackers |
On 2017-10-03 17:06:20 +0900, Michael Paquier wrote: > On Tue, Oct 3, 2017 at 3:12 PM, Andres Freund <andres@anarazel.de> wrote: > > On 2017-10-03 03:07:09 +0300, Alexander Korotkov wrote: > >> On Tue, Oct 3, 2017 at 12:32 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > >> +1, > >> I see 3 options there: > >> 1) Drop high-order bit, as you proposed. > >> 2) Allow negative queryIds. > >> 3) Implement unsigned 64-type. > > > > 4) use numeric, efficiency when querying is not a significant concern here > > 5) use a custom type that doesn't support arithmetic, similar to pg_lsn. > > Why not just returning a hexa-like text? Two reasons: First, it'd look fairly different to before, whereas 4/5 would probably just continue to work fairly transparently in a lot of cases. Secondly, what's the advantage in doing so over 4)? Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления: