Re: inet increment w/ int8

From: Bruce Momjian
Subject: Re: inet increment w/ int8
Date: ,
Msg-id: 200505212133.j4LLX8q08312@candle.pha.pa.us
(view: Whole thread, Raw)
In response to: inet increment w/ int8  ("Ilya A. Kovalenko")
Responses: Re: inet increment w/ int8  (Douglas McNaught)
List: pgsql-hackers

Tree view

inet increment w/ int8  ("Ilya A. Kovalenko", )
 Re: inet increment w/ int8  ("Ilya A. Kovalenko", )
 Re: inet increment w/ int8  (Bruce Momjian, )
  Re: inet increment w/ int8  ("Ilya A. Kovalenko", )
   Re: inet increment w/ int8  (Bruce Momjian, )
    Re: inet increment w/ int8  (Greg Stark, )
     Re: inet increment w/ int8  (Bruce Momjian, )
      Re: inet increment w/ int8  (Greg Stark, )
       Re: inet increment w/ int8  ("Ilya A. Kovalenko", )
        Re: inet increment w/ int8  (Bruno Wolff III, )
      Re: inet increment w/ int8  ("Ilya A. Kovalenko", )
    Re: inet increment w/ int8  (Bruno Wolff III, )
  Re: inet increment w/ int8  (Patrick Welche, )
 Re: inet increment w/ int8  (Bruce Momjian, )
  Re: inet increment w/ int8  (Douglas McNaught, )
   Re: inet increment w/ int8  (Bruce Momjian, )
    Re: inet increment w/ int8  (Stephen Frost, )
    Re: inet increment w/ int8  ("Sander Steffann", )

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                |  (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:

From: Bruce Momjian
Date:
Subject: Re: inet increment w/ int8
From: Jaime Casanova
Date:
Subject: Re: Views update ?