Incrementing INET fields

From: Peter Nixonn <listuser(at)peternixon(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Incrementing INET fields
Date: 2006-11-27 13:04:01
Message-ID: ekeno2$kt6$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Guys

Is there any particular reason why you can't do something like:
select '10.1.1.1'::inet + 1;

I would dearly like to be able to autoincrement an INET field. Even better I
would like to be able to specify subnet or range limits on the
autoincrement, but that would be just icing on the cake..

Is there some technical reason (other than finite developer time) that this
isn't possible at present?

Regards
--

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2006-11-27 13:10:09 Re: "Optional ident" authentication
Previous Message Peter Eisentraut 2006-11-27 13:01:07 Re: Configuring BLCKSZ and XLOGSEGSZ (in 8.3)