Re: [HACKERS] cidr - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: [HACKERS] cidr
Date
Msg-id Pine.BSF.3.96.980722091619.23582G-100000@hub.org
Whole thread Raw
In response to Re: [HACKERS] cidr  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] cidr  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
On Tue, 21 Jul 1998, Bruce Momjian wrote:

> I think we have to be able to store both old-style and cidr-style
> addresses for several reasons:
>
>     we have current users of ip_and_mac
>     some people don't use cidr yet
>     we need to be able to store netmasks too, which aren't cidr
>
> So a generic INET type is clearer, and will support both address types.

    I do not agree ... an INET type is clearer only for those that
don't know better, so we're now promoting ignorance of proper terminology?
We have everything else 'explained' in our man pages:

  char(n)        character(n)             fixed-length character string
  varchar(n)     character varying(n)     variable-length character string

    So, having:

  cidr        n/a            IPv4 addressing
  cidr6        n/a            IPv6 addressing

    Is not unreasonable...

    Mis-naming it INET and INET6, IMHO, is unreasonable, since that is
not what they are...



pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] cidr
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] atttypmod now 32 bits, interface change