int8 size

From: Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it>
To: pgsql-hackers(at)postgresql(dot)org
Subject: int8 size
Date: 1998-11-05 15:11:35
Message-ID: 3674.981105@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I'm trying to guess the size of int8...

hygea=> insert into b values (9223372036854775296);
NOTICE: Integer input '9223372036854775296' is out of range; promoted to float
ERROR: Floating point conversion to int64 is out of range
hygea=> select * from b;
i8
-------------------
9223372036854775807
9223372036854774784
(2 rows)

hygea=> update b set i8=i8+1;
UPDATE 2
hygea=> select * from b;
i8
--------------------
-9223372036854775808
9223372036854774785
(2 rows)

-Jose'-

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-11-05 15:13:42 Re: [HACKERS] Open the flood gates...v6.4 is tag'd...
Previous Message Thomas G. Lockhart 1998-11-05 15:07:07 Re: [HACKERS] quoting problem?