Re: Precision of data types and functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <gsstark(at)mit(dot)edu>
Cc: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, Brandon Aiken <BAiken(at)winemantech(dot)com>, pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Precision of data types and functions
Date: 2006-08-28 20:18:13
Message-ID: 17519.1156796293@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory Stark <gsstark(at)mit(dot)edu> writes:
> Scott Marlowe <smarlowe(at)g2switchworks(dot)com> writes:
>> test=> insert into test values (123123123123123.2);
>> ERROR: numeric field overflow
>> DETAIL: The absolute value is greater than or equal to 10^14 for field
>> with precision 12, scale 2.

> Uhm 10^14? What version of Postgres is that?!

Looks like any current release :-(

> Though I get a correct text with 8.2CVS:
> ...
> I guess Tom fixed some bugs when he reimplemented NUMERIC a while back.

No, I think Bruce fixed this recently. It's just a cosmetic mistake in
the error message so we didn't back-patch it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-08-28 20:23:16 Re: Atomicity?
Previous Message Naz Gassiep 2006-08-28 20:17:39 Re: Atomicity?