Re: index for inet(ip address or ip range)

From: Lee Azzarello <lee(at)dropio(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: index for inet(ip address or ip range)
Date: 2009-02-26 16:36:36
Message-ID: 16b031c0902260836p5577e667jdbf120eb07998ef7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Feb 26, 2009 at 5:33 AM, Tony Liao <tonyliao(at)yuehetone(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lee Azzarello 2009-02-26 16:43:06 Re: postgresql with storage
Previous Message Lentes, Bernd 2009-02-26 16:19:04 Re: Question to transaction ID wraparound