Re: JOINing based on whether an IP address is contained within a CIDR range?

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: JOINing based on whether an IP address is contained within a CIDR range?
Дата
Msg-id 36e682920710260503w79ebde81la456bdefd304da5a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: JOINing based on whether an IP address is contained within a CIDR range?  (Harald Fuchs <hf0217x@protecting.net>)
Список pgsql-sql
On 10/26/07, Harald Fuchs <hf0217x@protecting.net> wrote:
> There are PostgreSQL builtin functions for that, but I think they are
> unable to use indexes. I use http://pgfoundry.org/projects/ip4r/
> and I think it's the best thing since the invention of sliced bread ;-)

Yes:

ip4r('ip') <<= ip4r(cidr('cidr'))

-- 
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation                | fax: 732.331.1301
499 Thornall Street, 2nd Floor          | jonah.harris@enterprisedb.com
Edison, NJ 08837                        | http://www.enterprisedb.com/


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

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: JOINing based on whether an IP address is contained within a CIDR range?
Следующее
От: "Chuck D."
Дата:
Сообщение: Re: request for help with COPY syntax