Re: INET operators and NOT

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tomas Cerha <t(dot)cerha(at)sh(dot)cvut(dot)cz>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: INET operators and NOT
Date: 2000-06-01 23:36:01
Message-ID: 200006012336.TAA04701@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Sorry, I got the 2's and 1's mixed up. Yes, fixed.

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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
>

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-06-02 06:18:06 Re: Bug Repoprt- Casting Issues
Previous Message Tom Lane 2000-06-01 22:46:36 Re: INET operators and NOT

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-06-01 23:42:39 disbursion
Previous Message Tom Lane 2000-06-01 23:22:21 Re: Problems with recent CVS versions and Solaris.