From: Lee Azzarello <lee@dropio.com>
To: pgsql-admin@postgresql.org
Subject: Re: index for inet(ip address or ip range)
Date: Thu, 26 Feb 2009 11:36:36 -0500
Message-ID: <16b031c0902260836p5577e667jdbf120eb07998ef7@mail.gmail.com> (raw)
In-Reply-To: <8f750b7c0902260233q639be440qafce23613d9d77db@mail.gmail.com>
References: <8f750b7c0902260233q639be440qafce23613d9d77db@mail.gmail.com>
On Thu, Feb 26, 2009 at 5:33 AM, Tony Liao <tonyliao@yuehetone.com> wrote:
> hello,everybody
> I want to create index for column ip1 and ip2.I know there is a
> contrib name ip4r.but the column ip1(ip2) would be a ip address or ip range.
> The query would do select ....... where ip1>>='96.168.65.84' or
> ip2>>='96.168.65.84'.
> does anyone have ideas?
The ipv4 type can accept CIDR blocks. Would that work for you?
-lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: lee@dropio.com
Subject: Re: index for inet(ip address or ip range)
In-Reply-To: <16b031c0902260836p5577e667jdbf120eb07998ef7@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox