Re: inet increment with int - Mailing list pgsql-hackers

From Patrick Welche
Subject Re: inet increment with int
Date
Msg-id 20050905191016.GV8469@quartz.itdept.newn.cam.ac.uk
Whole thread Raw
In response to Re: inet increment with int  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: inet increment with int
List pgsql-hackers
On Mon, Sep 05, 2005 at 03:02:55PM -0400, Tom Lane wrote:
> Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> > * Allow INET + INT4 to increment the host part of the address, or
> >   throw an error on overflow
> 
> > I think that the naively coded function attached does what is needed, e.g.,
> 
> What happened to the IPv6 case?

My take on the thread is that the IPv6 case doesn't make sense, and the
int8 part was dropped from the TODO.

> Also, I think you need to reject CIDR inputs.

OK

Patrick


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: statement logging / extended query protocol issues
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL configurable SSL key checking