pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Feature, my misconception or bug??
Date: Wed, 22 Feb 2006 18:31:45 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <200602221347.33355.peter_e@gmx.net>

O Peter Eisentraut Ýãñáøå óôéò Feb 22, 2006 :

> 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 ^
> 
In the above statement there was a "?", which is missing here.

It should read:
"in this case 11111111.11111111.11111111.11111111 has no bits set to 
right of 8th Least Significant Bit???"
(with a ^ showing the position where the mask ends, making it 
obviously visible to the ones who use text base MUAs in fixed width font
terminals).

In other words, why doesnt the system produce an error for the second 
query as well???

> I'm sure you are aware that "1" is a set bit, so which part are you not 
> understanding?

Others (Marcus) have reported that the second query 
SELECT '255.255.255.255/25'::cidr;
indeed produces an error in 8.1;

so i guess its a bug in the 7.4.x series.

> 
> 

-- 
-Achilleus




view thread (6+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, peter_e@gmx.net
  Subject: Re: Feature, my misconception or bug??
  In-Reply-To: <Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com>
  References: <200602221347.33355.peter_e@gmx.net> <Pine.LNX.4.44.0602221816400.12391-100000@matrix.gatewaynet.com>

* 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