Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 58B752E4082 for ; Fri, 11 Jan 2008 18:24:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 05913-02 for ; Fri, 11 Jan 2008 18:24:30 -0400 (AST) Received: from main1.mycybernet.net (main1.mycybernet.net [209.222.63.135]) by postgresql.org (Postfix) with ESMTP id 2B1492E4081 for ; Fri, 11 Jan 2008 18:24:31 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=crankycanuck.ca) by main1.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1JDSIM-0007FS-8y for pgsql-performance@postgresql.org; Fri, 11 Jan 2008 17:24:10 -0500 Received: by crankycanuck.ca (Postfix, from userid 1000) id 9CFE24FFE2; Fri, 11 Jan 2008 17:24:03 -0500 (EST) Date: Fri, 11 Jan 2008 17:24:03 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Best way to index IP data? Message-ID: <20080111222403.GA7527@crankycanuck.ca> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <200801101614.54729.kevin@kevinkempterllc.com> <36e682920801101541o7626bbddj428617144240c554@mail.gmail.com> <13179.1200064791@sss.pgh.pa.us> <20080111162747.GT5294@mathom.us> <24044.1200082058@sss.pgh.pa.us> <20080111212703.GU5294@mathom.us> <20080111213710.GD8260@alvh.no-ip.org> <20080111220235.GX5294@mathom.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080111220235.GX5294@mathom.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/81 X-Sequence-Number: 28320 On Fri, Jan 11, 2008 at 05:02:36PM -0500, Michael Stone wrote: > networks), but there's a conspicuous lack of a type for (hosts). I > suppose if you really are sure that you want to store hosts and not > networks Well, part of the trouble is that in the CIDR world, an IP without a netmask can be dangerously ambiguous. I can see why the design is as it is for that reason. (But I understand the problem.) A