pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Ilya A. Kovalenko <shadow@oganer.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: operating "inet" type
Date: Wed, 13 Apr 2005 08:14:10 -0500
Message-ID: <20050413131410.GA4594@wolff.to> (raw)
In-Reply-To: <14038968283.20050412203404@oganer.net>
References: <14038968283.20050412203404@oganer.net>

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.



view thread (2+ messages)

Message-ID: <20050413131410.GA4594@wolff.to>
Permalink:  ../20050413131410.GA4594@wolff.to/
Also on:    postgresql.org/message-id/20050413131410.GA4594@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, shadow@oganer.net
  Subject: Re: operating "inet" type
  In-Reply-To: <20050413131410.GA4594@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox