Re: operating "inet" type

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Ilya A(dot) Kovalenko" <shadow(at)oganer(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: operating "inet" type
Date: 2005-04-13 13:14:10
Message-ID: 20050413131410.GA4594@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, Apr 12, 2005 at 20:34:04 +0800,
"Ilya A. Kovalenko" <shadow(at)oganer(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-04-13 13:20:19 Re: max question
Previous Message Bill Lawrence 2005-04-13 06:08:05 Re: Getting the output of a function used in a where clause