Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 370C21337B66 for ; Thu, 21 Oct 2010 18:57:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 68164-09 for ; Thu, 21 Oct 2010 21:57:50 +0000 (UTC) X-Greylist: delayed 00:08:15.82661 by SQLgrey-1.7.6 Received: from kilimanjaro.scorpionshops.com (kilimanjaro.scorpionshops.com [91.191.136.201]) by mail.postgresql.org (Postfix) with ESMTP id 1919C1337B58 for ; Thu, 21 Oct 2010 18:57:50 -0300 (ADT) Received: from [92.32.205.106] (92-32-205-106.tn.glocalnet.net [92.32.205.106]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPA id 29CCE7BC119; Thu, 21 Oct 2010 23:49:32 +0200 (CEST) Subject: Re: BUG #5705: btree_gist: Index on inet changes query result From: andreas To: Tom Lane Cc: Robert Haas , pgsql-bugs@postgresql.org In-Reply-To: <10183.1287526949@sss.pgh.pa.us> References: <201010112055.o9BKtZf7011251@wwwmaster.postgresql.org> <8973.1286841006@sss.pgh.pa.us> <10183.1287526949@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Thu, 21 Oct 2010 23:49:31 +0200 Message-ID: <1287697771.20773.2.camel@jansson> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/185 X-Sequence-Number: 28475 On Tue, 2010-10-19 at 18:22 -0400, Tom Lane wrote: > Robert Haas writes: > > On Mon, Oct 11, 2010 at 7:50 PM, Tom Lane 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