Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 457C864FFBC for ; Thu, 17 Jul 2008 00:58:16 -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 21432-07-3 for ; Thu, 17 Jul 2008 00:57:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 4744C64FF4F for ; Thu, 17 Jul 2008 00:52:20 -0300 (ADT) Received: (qmail 26514 invoked by uid 1112); 17 Jul 2008 03:52:19 -0000 Date: Wed, 16 Jul 2008 23:52:19 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tom Lane cc: Johan Miller , pgsql-jdbc@postgresql.org Subject: Re: Problem with java infinity mapping to postgres real column type In-Reply-To: <7489.1216217283@sss.pgh.pa.us> Message-ID: References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com> <7489.1216217283@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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/41 X-Sequence-Number: 18826 On Wed, 16 Jul 2008, Tom Lane wrote: > It sounds like "infinity" is getting translated to "some large number" > rather than the correct "Infinity" or "-Infinity" symbol. The latter > two should work on IEEE-compliant platforms, but you might want to check > manually: Actually the problem is: jurka=# select 'infinity'::float8::float4; ERROR: type "real" value out of range: overflow I would have expected that the float8 -> float4 conversion would just keep it as infinity. Kris Jurka