hi,lee CIDR is only accept ipv4 but not ip range such as 192.168.1.0/24. INET type is what I need,but I don't know how to create index. does anyone have ideas?
On Thu, Feb 26, 2009 at 5:33 AM, Tony Liao <tonyliao@yuehetone.com> wrote: > hello,everybody > I want to create index for column ip1 and ip2.I know there is a > contrib name ip4r.but the column ip1(ip2) would be a ip address or ip range. > The query would do select ....... where ip1>>='96.168.65.84' or > ip2>>='96.168.65.84'. > does anyone have ideas?
The ipv4 type can accept CIDR blocks. Would that work for you?