Re: [HACKERS] New IP address datatype

From: Mark Volpe <mvolpe(at)eos(dot)ncsu(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] New IP address datatype
Date: 1999-05-31 18:08:44
Message-ID: 3752D02C.7D0E2686@eos.ncsu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.
>

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Theo Kramer 1999-05-31 18:31:48 Re: [HACKERS] please?
Previous Message Tom Lane 1999-05-31 18:03:48 Re: [HACKERS] Open 6.5 items