X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 49A059FCED0 for ; Mon, 28 Aug 2006 10:08:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 54749-04 for ; Mon, 28 Aug 2006 10:08:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id B017D9FCECA for ; Mon, 28 Aug 2006 10:08:36 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id k7SD8SAb040971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 28 Aug 2006 07:08:30 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id k7SD8R41004227; Mon, 28 Aug 2006 07:08:27 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id k7SD8RCK004226; Mon, 28 Aug 2006 07:08:27 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 28 Aug 2006 07:08:27 -0600 From: Michael Fuhr To: Aarni =?iso-8859-1?Q?Ruuhim=E4ki?= Cc: pgsql-sql@postgresql.org Subject: Re: double precision vs. numeric Message-ID: <20060828130827.GB4094@winnie.fuhr.org> References: <200608241936.50752.aarni@kymi.com> <7131.1156440586@sss.pgh.pa.us> <200608250812.58794.aarni@kymi.com> <200608281108.50394.aarni@kymi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608281108.50394.aarni@kymi.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.19 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/215 X-Sequence-Number: 26173 On Mon, Aug 28, 2006 at 11:08:50AM +0300, Aarni Ruuhimki wrote: > Now I saw it again. In a terminal window after an insert from an application: > > WARNING: deprecated input syntax for type double precision: "" > DETAIL: This input will be rejected in a future release of PostgreSQL. > > So this merely means that in future one can not insert empty values into field > of type double precision ? Right. 8.0 issues a warning and 8.1 gives an error: 8.0.8 test=> SELECT ''::double precision; WARNING: deprecated input syntax for type double precision: "" DETAIL: This input will be rejected in a future release of PostgreSQL. float8 -------- 0 (1 row) 8.1.4 test=> SELECT ''::double precision; ERROR: invalid input syntax for type double precision: "" -- Michael Fuhr