Re: operating "inet" type - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: operating "inet" type
Date
Msg-id 20050413131410.GA4594@wolff.to
Whole thread Raw
In response to operating "inet" type  ("Ilya A. Kovalenko" <shadow@oganer.net>)
List pgsql-sql
On Tue, Apr 12, 2005 at 20:34:04 +0800, "Ilya A. Kovalenko" <shadow@oganer.net> wrote:
> 
>   You can do integer compare two "inet" values, but you can't do
> integer increment (i.e. increment inet value by integer).

It would probably be useful to have some way of generating a list of
addresses in a subnet. Being able to increment addresses and having a
way to get the highest and lowest addresses in a subnet would give you
a way to do that.

>   I understand, that developers has more important things to do, but
> they left "inet" type w/o any ways to work w/ it.

You can write your own functions to do this. It is possible that they
could go back into the code base if they seem generally useful.

If you are interested in getting them back into the code base, you are probably
best off proposing specs for the functions on the hackers lists for comments,
before writing them.


pgsql-sql by date:

Previous
From: "Dinesh Pandey"
Date:
Subject: Re: max question
Next
From: Bruno Wolff III
Date:
Subject: Re: max question