Re: [HACKERS] New IP address datatype - Mailing list pgsql-hackers

From Mark Volpe
Subject Re: [HACKERS] New IP address datatype
Date
Msg-id 3752D02C.7D0E2686@eos.ncsu.edu
Whole thread Raw
Responses Re: [HACKERS] New IP address datatype
List pgsql-hackers
I've been looking at those discussions -- my idea is to simplify
the ip network types ( and operators ) a little:

Hosts are specified as '134.67.131.10' or '134.67.131.10/32' and
display 134.67.131.10.

Subnets are specified as '134.67.131.0/24', '134.67.131/24', or
just '134.67.131', but they would display '134.67.131.0/24'.

There would be no provision for storing a host/netmask in the
same structure; it seems confusing to me anyway since you could
put the netmask in a seperate column.


Thanks,
Mark

( Sorry, I meant to post to the list the first time )
Bruce Momjian wrote:
> 
> But they are the same, except for output, right?  We discussed the
> having a unified type, but could not figure out how to output things
> properly.  I recommend you see the huge discussion on the hackers list
> about these types in the October/November 1998 timeframe.
>


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Open 6.5 items
Next
From: Theo Kramer
Date:
Subject: Re: [HACKERS] please?