Re: [HACKERS] numeric data type on 6.5 - Mailing list pgsql-hackers

From D'Arcy" "J.M." Cain
Subject Re: [HACKERS] numeric data type on 6.5
Date
Msg-id m10c4Iw-0000bIC@druid.net
Whole thread Raw
In response to numeric data type on 6.5  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: [HACKERS] numeric data type on 6.5  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
Thus spake Tatsuo Ishii
> I thought numeric data type on 6.5 allows a very large precision. Am I 
> missing something?
[...]
> test=> insert into t1 values(100000000000000000000000000000);
> NOTICE:  Integer input '100000000000000000000000000000' is out of range; promoted to float

Try this.
insert into t1 values('100000000000000000000000000000'::numeric);

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: numeric data type on 6.5
Next
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] numeric data type on 6.5