Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7B71C64FCE4 for ; Thu, 17 Jul 2008 02:28:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 99059-08 for ; Thu, 17 Jul 2008 02:28:09 -0300 (ADT) X-Greylist: delayed 00:05:10.552506 by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id 2E5D764FCDA for ; Thu, 17 Jul 2008 02:28:10 -0300 (ADT) Received: from [192.168.7.100] (97-118-65-166.hlrn.qwest.net [97.118.65.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail63.csoft.net (Postfix) with ESMTP id 273D0287DD; Thu, 17 Jul 2008 01:22:58 -0400 (EDT) Message-ID: <487ED732.8070102@ejurka.com> Date: Wed, 16 Jul 2008 23:22:58 -0600 From: Kris Jurka User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tom Lane CC: Kris Jurka , Johan Miller , pgsql-jdbc@postgresql.org Subject: Re: Problem with java infinity mapping to postgres real column type References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com> <7489.1216217283@sss.pgh.pa.us> <13936.1216271734@sss.pgh.pa.us> In-Reply-To: <13936.1216271734@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/43 X-Sequence-Number: 18828 Tom Lane wrote: > Kris Jurka writes: >> Actually the problem is: >> jurka=# select 'infinity'::float8::float4; >> ERROR: type "real" value out of range: overflow > > Well, that's definitely a problem, but what PG version are you testing > on what platform? I get this using CVS HEAD on Fedora 9, Darwin, and > HPUX: > > regression=# select 'infinity'::float8::float4; > float4 > ---------- > Infinity > (1 row) > I get the error (or variant) for 7.4 -> 8.2 on Debian Linux. 8.3 and HEAD work. I see this in the 8.3 release notes: Fix float4/float8 to handle Infinity and NAN (Not A Number) consistently (Bruce) The code formerly was not consistent about distinguishing Infinity from overflow conditions. Kris Jurka