Received: from sss.pgh.pa.us ([216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f2UFXwK65372 for ; Fri, 30 Mar 2001 10:33:58 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f2UFXbw01091; Fri, 30 Mar 2001 10:33:37 -0500 (EST) To: Kyle cc: pgsql-sql@postgresql.org Subject: Re: Possible 7.1RC1 bug In-reply-to: <3AC394C6.E7D2E184@actarg.com> References: <3AC394C6.E7D2E184@actarg.com> Comments: In-reply-to Kyle message dated "Thu, 29 Mar 2001 13:02:14 -0700" Date: Fri, 30 Mar 2001 10:33:36 -0500 Message-ID: <1088.985966416@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200103/648 X-Sequence-Number: 2327 Kyle 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