From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | "Mayers, Philip J" <p(dot)mayers(at)ic(dot)ac(dot)uk> |
Cc: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: RE: even more CIDR weirdness (was equality operator on CIDR colum n as primary key) |
Date: | 2000-08-30 14:37:01 |
Message-ID: | Pine.BSF.4.10.10008300731250.60082-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
IIRC, there were some problems with CIDR where it was considering
the low bits significant even though they might not have been set
(in the case of 192.169/16 for example) which was causing fairly
odd behavior.
I believe they've routed out these problems in current sources
so it should be fixed for 7.1.
Stephan Szabo
sszabo(at)bigpanda(dot)com
On Wed, 30 Aug 2000, Mayers, Philip J wrote:
>
> Ok, now I'm getting truly confused. It works with some networks, but not
> with others:
>
>
> test=> select * from test;
> network | netcol
> ----------------+--------
> 192.168/16 | 192/8
> 192/8 | 192/4
> 155.198/16 |
> 155.198.1/24 |
> 156.198/16 |
> 156.198.1/24 |
> 193.63.75.0/27 |
> (7 rows)
>
> test=> select * from test where network = '192.168/16';
> network | netcol
> ---------+--------
> (0 rows)
>
> test=> select * from test where network = '193.63.75.8/27';
> network | netcol
> ----------------+--------
> 193.63.75.0/27 |
> (1 row)
>
> test=> select * from test where network = '193.63.75.8/27';
> network | netcol
> ----------------+--------
> 193.63.75.0/27 |
> (1 row)
>
> test=> select * from test where network = '155.198/16';
> network | netcol
> ---------+--------
> (0 rows)
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew.Mason | 2000-08-30 14:42:34 | Importing data into database |
Previous Message | Andrew Snow | 2000-08-30 14:22:36 | RE: Large selects handled inefficiently? |