Re: BUG #5705: btree_gist: Index on inet changes query result - Mailing list pgsql-bugs

From andreas
Subject Re: BUG #5705: btree_gist: Index on inet changes query result
Date
Msg-id 1287697771.20773.2.camel@jansson
Whole thread Raw
In response to Re: BUG #5705: btree_gist: Index on inet changes query result  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #5705: btree_gist: Index on inet changes query result  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
On Tue, 2010-10-19 at 18:22 -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > On Mon, Oct 11, 2010 at 7:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> Well, actually the btree_gist implementation for inet is a completely
> >> broken piece of junk: it thinks that convert_network_to_scalar is 100%
> >> trustworthy and can be used as a substitute for the real comparison
> >> functions, which isn't even approximately true.
>
> > Are you planning to fix this?
>
> No.  I don't understand why Teodor did it like that, so I'm not going
> to try to change it.  I'd be willing to take responsibility for ripping
> out btree_gist's inet support altogether ...
>
>             regards, tom lane

That is the reason why I just reported it instead of trying to fix it
myself first. Since I could not understand why it was done like that, I
did not feel like fixing it.

Best regards,
Andreas Karlsson

pgsql-bugs by date:

Previous
From: Alex Hunsaker
Date:
Subject: Re: BUG #5719: Constraint Problem
Next
From: "Eiichi Nakamura"
Date:
Subject: BUG #5720: Bug for PQescapeByteaConn (libpq)