Re: inet increment with int

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Patrick Welche <prlw1@newn.cam.ac.uk>
Cc: pgsql-hackers@postgresql.org
Date: 2005-09-05T19:02:55Z
Lists: pgsql-hackers
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?  Also, I think you need to reject CIDR
inputs.

			regards, tom lane