pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michele Petrazzo - Unipex srl <michele.petrazzo@unipex.it>
To: pgsql-sql@postgresql.org
Subject: CIdr query qestion
Date: Tue, 10 Jul 2007 09:36:49 +0200
Message-ID: <46933711.4030501@unipex.it> (raw)

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

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.2K) download

view thread (3+ messages)  latest in thread

Message-ID: <46933711.4030501@unipex.it>
Permalink:  ../46933711.4030501@unipex.it/
Also on:    postgresql.org/message-id/46933711.4030501@unipex.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: michele.petrazzo@unipex.it
  Subject: Re: CIdr query qestion
  In-Reply-To: <46933711.4030501@unipex.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox