CIDR output format

Поиск
Список
Период
Сортировка
От Tom Lane
Тема CIDR output format
Дата
Msg-id 5809.977335593@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: performance modality in 7.1 for large text attributes?  (Paul A Vixie <vixie@mfnx.net>)
Ответы Re: CIDR output format  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-hackers
Paul A Vixie <vixie@mfnx.net> writes:
> cisco IOS just won't take 10/8 and insists on 10.0.0.0/8.  you will never,
> ever go wrong if you try to use 10.0.0.0/8, since everything that understands
> CIDR understands that.  10/8 is a pleasant-appearing alternative format, but
> it is not universally accepted and i recommend against it.  (i'm not sure if
> my original CIDR type implementation for pgsql output the shorthand or not;
> if it did, then i apologize to one and all.)

Well, that's an earful.  Faced with this authoritative opinion, I
withdraw my previous objections to changing the output format for CIDR.

It would seem that the appropriate behavior would be to make the default
display format for CIDR be like "10.0.0.0/8".  Now the text() conversion
function already produces this same format.  I'd be inclined to leave
text() as-is and add a new conversion function with some other name
(suggestions anyone?) that produces the shorthand form "10/8" as text,
for those who prefer it.

Comments?
        regards, tom lane


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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: MySQL conversion utility
Следующее
От: Tom Lane
Дата:
Сообщение: Re: performance modality in 7.1 for large text attributes?