Re: Floating point error

From: James Cloos <cloos(at)jhcloos(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Floating point error
Date: 2013-03-02 23:11:31
Message-ID: m34ngt75xf.fsf@carbon.jhcloos.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

>>>>> "TD" == Tom Duffey <tduffey(at)trillitech(dot)com> writes:

TD> We have a script thatb uses COPY to transfer a subset of rows
TD> from a very large production table to a test table. The script
TD> was not setting extra_float_digits so the values did not match
TD> even though they appeared to match when running queries in psql.

Incidently, this is a prime example of where the hexidecimal format
for floats would benefit pg, as it makes the text format for floats
just as suitable for round-tripping as the binary format.

-JimC
--
James Cloos <cloos(at)jhcloos(dot)com> OpenPGP: 1024D/ED7DAEA6

In response to

Browse pgsql-general by date

  From Date Subject
Next Message G N 2013-03-03 17:05:55 out of memory issue
Previous Message Chris Hanks 2013-03-01 22:53:32 Re: Poor performance when using a window function in a view

Browse pgsql-hackers by date

  From Date Subject
Next Message Satoshi Nagayasu 2013-03-03 06:33:59 Fix pgstattuple/pgstatindex to use regclass-type as the argument
Previous Message Heikki Linnakangas 2013-03-02 18:47:48 Re: scanner/parser minimization