Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 92F701337B83 for ; Tue, 19 Oct 2010 19:22:37 -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 80018-02 for ; Tue, 19 Oct 2010 22:22:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 3C1F81337B84 for ; Tue, 19 Oct 2010 19:22:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9JMMTB4010184; Tue, 19 Oct 2010 18:22:29 -0400 (EDT) To: Robert Haas cc: Andreas Karlsson , pgsql-bugs@postgresql.org Subject: Re: BUG #5705: btree_gist: Index on inet changes query result In-reply-to: References: <201010112055.o9BKtZf7011251@wwwmaster.postgresql.org> <8973.1286841006@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 19 Oct 2010 16:57:05 -0400" Date: Tue, 19 Oct 2010 18:22:29 -0400 Message-ID: <10183.1287526949@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/177 X-Sequence-Number: 28467 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