Re: [SQL] avg() on numeric ?

From: wieck(at)debis(dot)com (Jan Wieck)
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: kaiq(at)realtyideas(dot)com, pgsql-sql(at)postgreSQL(dot)org, wieck(at)debis(dot)com
Subject: Re: [SQL] avg() on numeric ?
Date: 1999-12-17 23:43:51
Message-ID: m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> <kaiq(at)realtyideas(dot)com> writes:
> > test=> select avg(quota) from salesreps;
> > ERROR: overflow on numeric ABS(value) >= 10^-1 for field with precision 0 scale 1723
>
> > test=> select avg(sales) from salesreps;
> > ERROR: overflow on numeric ABS(value) >= 10^-1 for field with precision 0
> > scale 1723
>
> Hmm ... there were some similar bugs reported a couple of months ago,
> and I thought Jan would've fixed them by now. Jan, if you don't have
> time to look at this, let me know and I'll see if I can do anything
> with it.

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.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-12-18 00:32:05 Re: [SQL] Sub-select speed.
Previous Message Tom Lane 1999-12-17 23:25:01 Re: [SQL] Sub-select speed.