pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wieck@debis.com
To: tgl@sss.pgh.pa.us
Cc: kaiq@realtyideas.com
Cc: pgsql-sql@postgreSQL.org
Cc: wieck@debis.com
Subject: Re: [SQL] avg() on numeric ?
Date: Sat, 18 Dec 1999 00:43:51 +0100 (MET)
Message-ID: <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <11718.945472458@sss.pgh.pa.us>

>
> <kaiq@realtyideas.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@debis.com (Jan Wieck) #





view thread (4+ messages)  latest in thread

Message-ID: <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de>
Permalink:  ../m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de/
Also on:    postgresql.org/message-id/m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de

 · 

reply

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: wieck@debis.com, tgl@sss.pgh.pa.us, kaiq@realtyideas.com
  Subject: Re: [SQL] avg() on numeric ?
  In-Reply-To: <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de>
  References: <11718.945472458@sss.pgh.pa.us> <m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de>

* 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