CIDR output format - Mailing list pgsql-hackers

From Tom Lane
Subject CIDR output format
Date
Msg-id 5809.977335593@sss.pgh.pa.us
Whole thread Raw
In response to Re: performance modality in 7.1 for large text attributes?  (Paul A Vixie <vixie@mfnx.net>)
Responses Re: CIDR output format  (Larry Rosenman <ler@lerctr.org>)
List 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 by date:

Previous
From: Thomas Lockhart
Date:
Subject: MySQL conversion utility
Next
From: Tom Lane
Date:
Subject: Re: performance modality in 7.1 for large text attributes?