Re: avg() bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Patrik Kudo <kudo(at)partitur(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: avg() bug?
Date: 2001-03-05 17:37:38
Message-ID: 20089.983813858@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Patrik Kudo <kudo(at)partitur(dot)se> writes:
> I suppose avg() does a sum()/count() where sum returns a int2,
> which will be too small to contain the sum if the table contains
> many values?

Yes. This is changed in 7.1 --- sum() and avg() of int values now
return type 'numeric'.

regards, tom lane

In response to

  • avg() bug? at 2001-03-05 16:55:41 from Patrik Kudo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrik Kudo 2001-03-05 17:51:48 Re: avg() bug?
Previous Message Bruce Momjian 2001-03-05 17:23:48 Re: chinese_big5 for PgAccess