Re: Data types for IP address.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Data types for IP address.
Дата
Msg-id 7245.1298496791@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Data types for IP address.  (John R Pierce <pierce@hogranch.com>)
Ответы Re: Data types for IP address.  (John R Pierce <pierce@hogranch.com>)
Re: Data types for IP address.  (Gaini Rajeshwar <raja.rajeshwar2006@gmail.com>)
Список pgsql-general
John R Pierce <pierce@hogranch.com> writes:
> On 02/23/11 4:44 AM, Stephane Bortzmeyer wrote:
> *3. Start-End IP format :*      1.2.3.0-1.2.3.255
>> You don't even need to program the conversion, it is already done:
>>
>> % netmask 1.2.3.0:1.2.3.255
>> 1.2.3.0/24

> yes, but what about 10.1.2.57-10.1.2.123 ?    presumably valid in his
> range system, and certainly NOT a valid CIDR range.

The question is does he actually have a use-case for address ranges that
don't correspond to legal CIDR ranges, but do nonetheless have an
identifiable lower boundary, upper boundary, and no holes?  And if so,
what is it?  The whole thing looked to me like somebody inventing
requirements with little or no study of what they really needed.

            regards, tom lane

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Deadlock on the same select for update
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Data types for IP address.