pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Samir Magar <samirmagar8@gmail.com>
Cc: pgsql-performance@postgresql.org, Swapnil Vaze <swapvaze28@gmail.com>
Subject: Re: out of range error while restore using pgdump
Date: Mon, 16 Jan 2017 10:30:40 -0500
Message-ID: <7680.1484580640@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA=to3iNVdwLnT6sh-5ubwG_-2FASE0yzkERV9XsO69UsCjk9w@mail.gmail.com>
References: <CAA=to3iNVdwLnT6sh-5ubwG_-2FASE0yzkERV9XsO69UsCjk9w@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Samir Magar <samirmagar8@gmail.com> writes:
> pg_restore: [archiver (db)] COPY failed for table "tcb_test": ERROR:
>  "5.40593839802118076e-315" is out of range for type double precision

That's ... weird.  I don't have RHEL7 installed to test, but I don't
see any error for that value on RHEL6 or Fedora 25, which ought to
bracket that version.

I suppose your version of strtod() must be refusing to do gradual
underflow, or else you're running on hardware that doesn't do
IEEE-compliant arithmetic.  But I didn't think RHEL supported any
such hardware (unless maybe it's s/390?).  And I can't find any
documentation suggesting that glibc supports turning off gradual
underflow, either.

Perhaps you're using some extension that fools around with the
hardware floating-point options?

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (2+ messages)

Message-ID: <7680.1484580640@sss.pgh.pa.us>
Permalink:  ../7680.1484580640@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7680.1484580640@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, samirmagar8@gmail.com, swapvaze28@gmail.com
  Subject: Re: out of range error while restore using pgdump
  In-Reply-To: <7680.1484580640@sss.pgh.pa.us>

* 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