pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <jurka@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kris Jurka <books@ejurka.com>
Cc: Johan Miller <johanmiller@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with java infinity mapping to postgres real column type
Date: Wed, 16 Jul 2008 23:22:58 -0600
Message-ID: <487ED732.8070102@ejurka.com> (raw)
In-Reply-To: <13936.1216271734@sss.pgh.pa.us>
References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com>
	<7489.1216217283@sss.pgh.pa.us>
	<Pine.BSO.4.64.0807162351110.28897@leary.csoft.net>
	<13936.1216271734@sss.pgh.pa.us>

Tom Lane wrote:
> Kris Jurka <books@ejurka.com> 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




view thread (7+ messages)  latest in thread

Message-ID: <487ED732.8070102@ejurka.com>
Permalink:  ../487ED732.8070102@ejurka.com/
Also on:    postgresql.org/message-id/487ED732.8070102@ejurka.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jurka@ejurka.com, tgl@sss.pgh.pa.us, books@ejurka.com, johanmiller@gmail.com
  Subject: Re: Problem with java infinity mapping to postgres real column type
  In-Reply-To: <487ED732.8070102@ejurka.com>
  References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com> <7489.1216217283@sss.pgh.pa.us> <Pine.BSO.4.64.0807162351110.28897@leary.csoft.net> <13936.1216271734@sss.pgh.pa.us> <487ED732.8070102@ejurka.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox