Data types for IP address.

Поиск
Список
Период
Сортировка
От Gaini Rajeshwar
Тема Data types for IP address.
Дата
Msg-id AANLkTinf0gAa0WNP2+CSLP+pvbtWVkthFYAoV1wBSLaf@mail.gmail.com
обсуждение исходный текст
Ответы Re: Data types for IP address.  (Sim Zacks <sim@compulab.co.il>)
Re: Data types for IP address.  (Stephane Bortzmeyer <bortzmeyer@nic.fr>)
Список pgsql-general
Hi All,

I wanted to store ip addresses in table. I wanted to support the following 3 types of ip addresses.

1. Wildcard format     :     1.2.3.*

2. CIDR format            :     1.2.3/24  OR  1.2.3.4/255.255.255.0

3. Start-End IP format :      1.2.3.0-1.2.3.255


I had a look at CIDR datatype and inet datatype but it seems they support only partial of the above requirements. Any suggestions on what datatype is useful for this purpose?

Thanks

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] FATAL: no pg_hba.conf entry for host “::1***"
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: Data types for IP address.