Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wq0pS-0002Wg-Ld for pgsql-bugs@arkaria.postgresql.org; Thu, 29 May 2014 13:57:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wq0pR-0004yv-8l for pgsql-bugs@arkaria.postgresql.org; Thu, 29 May 2014 13:57:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wq0pQ-0004yo-AC for pgsql-bugs@postgresql.org; Thu, 29 May 2014 13:57:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wq0pM-0004Kc-7x for pgsql-bugs@postgresql.org; Thu, 29 May 2014 13:57:06 +0000 MIME-Version: 1.0 Subject: BUG #10457: Problem with double precision field. To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com Date: Thu, 29 May 2014 13:56:29 +0000 Message-ID: <20140529135629.10406.69681@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 10457 Logged by: Maxim Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.0.17 Operating system: Linux Description: Hi I have one database with table which I could not restore via pg_dump/pg_restore. I localized the problem at double precision values which could not be inserted into double precision (weird it is). [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; select record_rating::text::double precision from rating.record where record_rating>0 order by record_rating limit 10; ERROR: "6.5397686164648e-309" is out of range for type double precision So somehow double precision field could content value which could not be inserted into it again. Any ideas what's wrong with the database welcome. PS: table structure: obj_id | bigint | not null default nextval('rating.record_obj_id_seq'::regclass) obj_created | timestamp with time zone | not null default now() obj_modified | timestamp with time zone | not null default now() obj_status_did | smallint | not null default 1 record_rating | double precision | record_rating_without_attenuation | double precision | default 0 Indexes: "record_pkey" PRIMARY KEY, btree (obj_id) Kind Regards, Maksym -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs