Re: 128-bit integers can range only up to (2 ^ 63 -1) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 128-bit integers can range only up to (2 ^ 63 -1)
Date
Msg-id 1759627.1672759206@sss.pgh.pa.us
Whole thread Raw
In response to 128-bit integers can range only up to (2 ^ 63 -1)  (jian he <jian.universality@gmail.com>)
Responses Re: 128-bit integers can range only up to (2 ^ 63 -1)
List pgsql-hackers
jian he <jian.universality@gmail.com> writes:
> I am slightly confused by the int128 type. I thought the 128 bit integer
> means range type will be upto 2 ^ 127 - 1.
> Now just copy the above code and test the int128 range.
> int128 can only up to  9223372036854775807 (2 ^ 63 -1).

What's your grounds for claiming that?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Melih Mutlu
Date:
Subject: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication
Next
From: Michail Nikolaev
Date:
Subject: Re: Data loss on logical replication, 12.12 to 14.5, ALTER SUBSCRIPTION