Kyle <[EMAIL PROTECTED]> writes:
> It appears that sum(int4) returns type numeric. Shouldn't it return
> int4?
This is not a bug. It's a deliberate change in behavior: sum() and
avg() on integer datatypes now return numeric, to avoid problems with
overflow.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://www.postgresql.org/search.mpl
- [SQL] Possible 7.1RC1 bug Kyle
- Re: [SQL] Possible 7.1RC1 bug Tom Lane
- Re: [SQL] Possible 7.1RC1 bug Josh Berkus
- Re: [SQL] Possible 7.1RC1 bug Tom Lane
