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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: 128-bit integers can range only up to (2 ^ 63 -1)
Date: 2023-01-03 16:17:29
Message-ID: 1773583.1672762649@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

jian he <jian(dot)universality(at)gmail(dot)com> writes:
> On Tue, Jan 3, 2023 at 8:50 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> What's your grounds for claiming that?

> I did something like int128 a1 = 9223372036854775807 +
> 1;

Well, that's going to do the arithmetic in (probably) long int.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2023-01-03 16:30:59 Re: [PATCH] CF app: add "Returned: Needs more interest"
Previous Message Peter Eisentraut 2023-01-03 16:16:29 Re: typos