X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CDC0C3A3EDC for ; Wed, 10 Nov 2004 01:33:18 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46560-04 for ; Wed, 10 Nov 2004 01:33:06 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 644F23A4090 for ; Wed, 10 Nov 2004 01:33:06 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id iAA1X2SA006266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Nov 2004 18:33:04 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id iAA1X2eH052535; Tue, 9 Nov 2004 18:33:02 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id iAA1X1lG052534; Tue, 9 Nov 2004 18:33:01 -0700 (MST) (envelope-from mfuhr) Date: Tue, 9 Nov 2004 18:33:01 -0700 From: Michael Fuhr To: "andre.toscano" Cc: pgsql-sql Subject: Re: Aggregate like AVG() with Money Data Type Message-ID: <20041110013301.GA52476@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/92 X-Sequence-Number: 19411 On Tue, Nov 09, 2004 at 06:40:53PM -0200, andre.toscano wrote: > How can I use the aggregate AVG() with a column MONEY? The MONEY type has been deprecated since at least PostgreSQL 7.0. Is there a reason you're not using NUMERIC? -- Michael Fuhr http://www.fuhr.org/~mfuhr/