Skip site navigation (1) Skip section navigation (2)

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

From: Tony Liao <tonyliao(at)yuehetone(dot)com>
To: Lee Azzarello <lee(at)dropio(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: index for inet(ip address or ip range)
Date: 2009-02-27 02:04:14
Message-ID: (view raw or whole thread)
Lists: pgsql-admin
        CIDR is only accept ipv4 but not ip range such as
        INET type is what I need,but I don't know how to create index.
        does anyone have ideas?

2009/2/27 Lee Azzarello <lee(at)dropio(dot)com>

> 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>>='' or
> > ip2>>=''.
> >           does anyone have ideas?
> The ipv4 type can accept CIDR blocks. Would that work for you?
> -lee
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:

In response to

pgsql-admin by date

Next:From: Brad WiemerslageDate: 2009-02-27 07:47:44
Subject: warm standby, pg_standby, invalid checkpoint record
Previous:From: Richard StephanDate: 2009-02-27 00:04:02
Subject: ld: fatal: Symbol referencing errors

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group