Re: Exclude constraint problem

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alex Zepeda <zipzippy(at)sonic(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Exclude constraint problem
Date: 2010-08-31 00:00:53
Message-ID: 1283212853.24634.9.camel@jdavis-ux.asterdata.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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;

?column?
----------
f
(1 row)

> My own WAG is that we're talking about a GiST bug that causes it to
> recognize or not recognize duplicates depending on order of insertion.
> But that's theorizing far in advance of the data.

Seems plausible.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-08-31 00:06:38 Re: Exclude constraint problem
Previous Message Alex Zepeda 2010-08-30 23:58:16 Re: Exclude constraint problem