Re: Bug #670: netmask displayed for a /32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #670: netmask displayed for a /32
Дата
Msg-id 20403.1021990340@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #670: netmask displayed for a /32  (pgsql-bugs@postgresql.org)
Ответы Re: Bug #670: netmask displayed for a /32  (Edwin Groothuis <edwin@mavetju.org>)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> But the /y portion is shown in this case:
> pmoanalysis=> select ipaddress||'a' from dhcpservers;
>   ?column?
> -------------
>  1.2.3.4/32a
> (1 row)

This implicitly coerces the inet value to text datatype, and the
text(inet) function always displays netmask.  Perhaps you'd prefer
to use host() or abbrev() to do the conversion to text.

            regards, tom lane

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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: [SQL] Bug with Daylight Savings Time & Interval
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump && aggregate bug