X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7F3E39DC87E for ; Wed, 22 Feb 2006 11:27:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32047-03 for ; Wed, 22 Feb 2006 11:27:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by postgresql.org (Postfix) with ESMTP id E3D189DC838 for ; Wed, 22 Feb 2006 11:27:32 -0400 (AST) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id k1MGVjOp012844; Wed, 22 Feb 2006 18:31:45 +0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id k1MGVjsG012840; Wed, 22 Feb 2006 18:31:45 +0200 Date: Wed, 22 Feb 2006 18:31:45 +0200 (EET) From: Achilleus Mantzios To: Peter Eisentraut cc: pgsql-sql@postgresql.org Subject: Re: Feature, my misconception or bug?? In-Reply-To: <200602221347.33355.peter_e@gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.111 required=5 tests=[AWL=0.111] X-Spam-Score: 0.111 X-Spam-Level: X-Archive-Number: 200602/266 X-Sequence-Number: 24276 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