Re: [SQL] avg() on numeric ?

Поиск
Список
Период
Сортировка
От wieck@debis.com (Jan Wieck)
Тема Re: [SQL] avg() on numeric ?
Дата
Msg-id m11z72N-0003kKC@orion.SAPserv.Hamburg.dsh.de
обсуждение исходный текст
Ответ на Re: [SQL] avg() on numeric ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [SQL] avg() on numeric ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
>
> <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) #

В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Sub-select speed.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Sub-select speed.