Re: Exclude constraint problem - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Exclude constraint problem
Date
Msg-id 20068.1283213198@sss.pgh.pa.us
Whole thread Raw
In response to Exclude constraint problem  (Alex Zepeda <zipzippy@sonic.net>)
Responses Re: Exclude constraint problem  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-bugs
Jeff Davis <pgsql@j-davis.com> writes:
> On Mon, 2010-08-30 at 19:40 -0400, Tom Lane wrote:
>> That's really *not* supposed to happen, assuming that both machines have
>> IEEE float arithmetic and competently written float I/O code.

> On my machine I see:

> => select float4in(float4out((1::numeric + 1e-7::numeric)::float4)) =
>      (1::numeric + 1e-7::numeric)::float4;

You need extra_float_digits cranked up.  Which pg_dump knows about.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alex Zepeda
Date:
Subject: Re: Exclude constraint problem
Next
From: Jeff Davis
Date:
Subject: Re: Exclude constraint problem