Re: Incrementing INET fields - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Incrementing INET fields
Date
Msg-id 20061128141000.GB29938@svana.org
Whole thread Raw
In response to Re: Incrementing INET fields  (Peter Nixonn <listuser@peternixon.net>)
List pgsql-hackers
On Tue, Nov 28, 2006 at 12:17:20AM +0200, Peter Nixonn wrote:
> On a related note we also wrote an ippool module for radius which needs to
> have a prepopulated sqltable of ip addresses which it then hands out. Being
> able to prepopulate the table with a 10.0.0.0/8 or 192.168.0.0/24 range
> with a simple loop would be very usefull.

Seems to me you could do this with generate_series() and an int4 ->
inet conversion function.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

pgsql-hackers by date:

Previous
From: db@zigo.dhs.org
Date:
Subject: Re: Potential to_char localization bug
Next
From: Tom Lane
Date:
Subject: Re: Potential to_char localization bug