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

Поиск
Список
Период
Сортировка
От Lee Azzarello
Тема Re: index for inet(ip address or ip range)
Дата
Msg-id 16b031c0902260836p5577e667jdbf120eb07998ef7@mail.gmail.com
обсуждение исходный текст
Ответ на index for inet(ip address or ip range)  (Tony Liao <tonyliao@yuehetone.com>)
Ответы Re: index for inet(ip address or ip range)  (Tony Liao <tonyliao@yuehetone.com>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Lee Azzarello
Дата:
Сообщение: Re: postgresql with storage
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Question to transaction ID wraparound