Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMaeo-0000jg-OM for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 08:31:46 +0000 Received: from acidenitrix.villemain.org ([91.121.90.165]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMaej-0000hQ-QT for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 08:31:46 +0000 Received: from cac94-7-82-243-26-157.fbx.proxad.net ([82.243.26.157] helo=DimMBP-2.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TMaei-00065y-EY; Fri, 12 Oct 2012 10:31:40 +0200 From: Dimitri Fontaine To: Mr Dash Four Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7575: "between" does not work properly with inet/cidr addresses Organization: 2ndQuadrant References: <15990.1348982762@sss.pgh.pa.us> <506837BC.3050305@googlemail.com> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Fri, 12 Oct 2012 10:31:28 +0200 In-Reply-To: <506837BC.3050305@googlemail.com> (Dash Four's message of "Sun, 30 Sep 2012 13:14:52 +0100") Message-ID: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/101 X-Sequence-Number: 34401 Mr Dash Four writes: > That isn't possible in my case, because on the right side I have IP ranges > (from-to) and currently there isn't a PostgreSQL function which converts IP > ranges to cidr/inet, but even if there was such function available, this may > produce more than one cidr/inet ranges, so it won't be of much use. Have you tried using the ip4r extension yet? Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support