Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen
Дата
Msg-id 12363.1482512657@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
nomad@null.net writes:
> Ah, I just noticed that the return value of the netmask() function is
> of type 'inet' and that is (in my mind) where the actual issue is. A
> netmask may have the same underlying form and space requirements as an
> internet address or subnet, but it isn't really the same thing.

Maybe, but we're not going to invent a whole new datatype just to
represent that.  Perhaps you would be happier using the masklen()
function.

            regards, tom lane


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

Предыдущее
От: Chris Richards
Дата:
Сообщение: [GENERAL] explain analyze showed improved results without changes, why?
Следующее
От: Edmundo Robles
Дата:
Сообщение: Re: [GENERAL] Er Data Modeller for PostgreSQL