CIdr query qestion - Mailing list pgsql-sql

From Michele Petrazzo - Unipex srl
Subject CIdr query qestion
Date
Msg-id 46933711.4030501@unipex.it
Whole thread Raw
Responses Re: CIdr query qestion
Re: CIdr query qestion
List pgsql-sql
Hi ml!

A question about cidr query. I'm tring to use the various cidr functions
to exclude a A sub class, but I don't understand how use it:

SELECT count(ip_addr), ip_addr from wi_log_network where ip_addr !=
network('10.10.0.0/16', 16) group by (ip_addr);

it don't exclude the 10.10 ! Tried also the abbr or set_masklen keyword,
but the same. How do it?

P.s. Tried the >>, but it only include the values that I want to
exclude! (And I don't found how to do the opposite!)

Thanks,
Michele

pgsql-sql by date:

Previous
From: Patrick Clery
Date:
Subject: Index working, but not inside function
Next
From: "Jesper K. Pedersen"
Date:
Subject: Re: CIdr query qestion