Re: INET operators and NOT - Mailing list pgsql-bugs

From Tom Lane
Subject Re: INET operators and NOT
Date
Msg-id 28589.959899596@sss.pgh.pa.us
Whole thread Raw
In response to Re: INET operators and NOT  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: INET operators and NOT  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-bugs
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I still see this problem in 7.0.

You do?  I don't:

regression=# SELECT * FROM a;
    ip
----------
 10.1.1.1
 10.1.1.2
 10.2.1.2
 10.2.1.1
(4 rows)

regression=# SELECT * FROM a WHERE ip<<'10.1/16';
    ip
----------
 10.1.1.1
 10.1.1.2
(2 rows)

regression=# SELECT * FROM a WHERE NOT ip<<'10.1/16';
    ip
----------
 10.2.1.2
 10.2.1.1
(2 rows)

regression=#

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: INET operators and NOT
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Re: INET operators and NOT