From: Andres Freund <andres@2ndquadrant.com>
To: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10457: Problem with double precision field.
Date: Thu, 29 May 2014 16:26:50 +0200
Message-ID: <20140529142650.GN27914@awork2.anarazel.de> (raw)
In-Reply-To: <20140529135629.10406.69681@wrigleys.postgresql.org>
References: <20140529135629.10406.69681@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On 2014-05-29 13:56:29 +0000, maxim.boguk@gmail.com wrote:
> PostgreSQL version: 9.0.17
> [local]:5432 postgres@comon3=# select record_rating from rating.record
> where record_rating>0 order by 1 limit 50;
> record_rating
> ----------------------
> 6.5397686164648e-309
> 8.1108289380243e-309
> 2.0326868922821e-308
> and so on...
>
> But:
> select '6.5397686164648e-309'::double precision;
> ERROR: "6.5397686164648e-309" is out of range for type double precision
> LINE 2: select '6.5397686164648e-309'::double precision;
Those are 'denormalized' floating point numbers. Code to handle those
was added to 9.2+ in
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c318aeed84438619fc6b8c647def1730a110f0...
I guess it could be backpatched now that it has survived testing for a
fair while. It's annoying not to be able to restore data... Till then
you can just apply the patch.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: andres@2ndquadrant.com, maxim.boguk@gmail.com
Subject: Re: BUG #10457: Problem with double precision field.
In-Reply-To: <20140529142650.GN27914@awork2.anarazel.de>
References: <20140529135629.10406.69681@wrigleys.postgresql.org> <20140529142650.GN27914@awork2.anarazel.de>
* 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