| From: | Patrik Kudo <kudo(at)partitur(dot)se> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: avg() bug? |
| Date: | 2001-03-05 17:51:48 |
| Message-ID: | Pine.BSF.4.31.0103051843510.976-100000@tb303.partitur.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Thanks Tom!
I'll use sum(a::int4) until 7.1 then.
Regards,
Patrik Kudo
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Känns det oklart? Fråga på!
On Mon, 5 Mar 2001, Tom Lane wrote:
> 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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Samuel Sieb | 2001-03-05 18:19:11 | Re: Re: With which user Apache accesses PostgreSQL |
| Previous Message | Tom Lane | 2001-03-05 17:37:38 | Re: avg() bug? |