Re: inet increment w/ int8 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: inet increment w/ int8
Date
Msg-id 200505212133.j4LLX8q08312@candle.pha.pa.us
Whole thread Raw
In response to inet increment w/ int8  ("Ilya A. Kovalenko" <shadow@oganer.net>)
Responses Re: inet increment w/ int8  (Douglas McNaught <doug@mcnaught.org>)
List pgsql-hackers
Patrick Welche wrote:
> On Fri, May 20, 2005 at 11:12:54PM -0400, Bruce Momjian wrote:
> > Added to TODO:
> > 
> >     * Allow INET + INT4/INT8 to increment the host part of the address, or
> >       throw an error on overflow
> > 
> > I have not heard any use-case for adding to the network value if INET,
> > and by not using it, we can have an easy operator API.
> 
> Thanks - I'll look at the code that was posted..

I modified the TODO.  I think we only need an INT4.  I realize INT8
would be for IPV6 but I can't imagine a network that has more than INT4
hosts (not part of the network address).

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Minor issues with bitmap
Next
From: Jaime Casanova
Date:
Subject: Re: Views update ?