Re: [HACKERS] 64-bit queryId? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] 64-bit queryId?
Date
Msg-id CAB7nPqRT5jCEvPdwHCOA7PWMBNYAnxxS03nkCqcB5cRYJh8aUA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] 64-bit queryId?  (Andres Freund <andres@anarazel.de>)
Responses Re: [HACKERS] 64-bit queryId?
List pgsql-hackers
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?
-- 
Michael


-- 
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 by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] SendRowDescriptionMessage() is slow for queries with alot of columns
Next
From: Andres Freund
Date:
Subject: Re: [HACKERS] 64-bit queryId?