From: Tom Lane <tgl@sss.pgh.pa.us>
To: wieck@debis.com
Cc: kaiq@realtyideas.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] avg() on numeric ?
Date: Fri, 17 Dec 1999 20:10:37 -0500
Message-ID: <29406.945479437@sss.pgh.pa.us> (raw)
In-Reply-To: <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de>
wieck@debis.com (Jan Wieck) writes:
> Looks to me there's something wrong with the adjustment of
> actual computation and/or display precision during longer
> taking aggregates. I know where to look at - tnx anyway.
It doesn't necessarily take long; Zot O'Connor posted this example
in late October:
create table example(other decimal(4,4));
CREATE
insert into example (other) values(3.9);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision 4 scale 4
insert into example (other) values(0.0);
ERROR: overflow on numeric ABS(value) >= 10^0 for field with precision 4 scale 4
which still fails in current sources.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, wieck@debis.com, kaiq@realtyideas.com
Subject: Re: [SQL] avg() on numeric ?
In-Reply-To: <29406.945479437@sss.pgh.pa.us>
References: <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de> <29406.945479437@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox