Re: Summary: what to do about INET/CIDR

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Summary: what to do about INET/CIDR
Date: 2000-10-28 03:27:38
Message-ID: Pine.BSO.4.10.10010272319210.2291-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

one more small request:

int8_inet(inet) and inet_int8(int8): functions to convert an inet to an
int8 and back. (not an int4, since postgres int4s are signed)

This allows me to do some additional manipulations on values. (ie. given a
host, determine its default gateway, for us, it is always first host on
that network, this could be implemented as inet_int8(int8_inet(network(x))+1),
or splitting a cidr into two halves,

-alex

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Pilosov 2000-10-28 03:39:29 Re: Summary: what to do about INET/CIDR
Previous Message Alex Pilosov 2000-10-28 03:08:58 Re: Summary: what to do about INET/CIDR