Re: Feature, my misconception or bug?? - Mailing list pgsql-sql

From Markus Schaber
Subject Re: Feature, my misconception or bug??
Date
Msg-id 43FC5F2F.8030101@logix-tt.com
Whole thread Raw
In response to Re: Feature, my misconception or bug??  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-sql
Hi, Peter,

Peter Eisentraut wrote:
> Am Mittwoch, 22. Februar 2006 13:04 schrieb Achilleus Mantzios:
> 
>>foodb=# SELECT '255.255.255.255/24'::cidr;
>>ERROR:  invalid cidr value: "255.255.255.255/24"
>>DETAIL:  Value has bits set to right of mask.
> 
> 
>>in this case
>>11111111.11111111.11111111.11111111
>>has no bits set to right of
>>                     8 LSB ^
> 
> 
> I'm sure you are aware that "1" is a set bit, so which part are you not 
> understanding?

I guess he's confused by the fact that /24 complains about bits 25-31
beeing set, while /25 does not complain aobut bigs 26-31 beeing set.

HTH,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Feature, my misconception or bug??
Next
From: Markus Schaber
Date:
Subject: Re: Feature, my misconception or bug??