Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZC8h3-0002iU-NS for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 15:52:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZC8h2-0006m8-4L for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 15:52:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZC25J-0000PJ-Lq for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 08:49:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZC25H-0002b3-H4 for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 08:49:04 +0000 MIME-Version: 1.0 Subject: BUG #13488: Wrong netmask calculation To: pgsql-bugs@postgresql.org From: stn@inbox.ru Date: Mon, 06 Jul 2015 08:48:21 +0000 Message-ID: <20150706084821.1201.77035@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13488 Logged by: Taras Email address: stn@inbox.ru PostgreSQL version: 9.4.4 Operating system: CentOS 6.5 Description: database=# select inet(routedest), inet(routemask) from iprouteinterface group by routedest, routemask order by routedest limit 3; inet | inet -----------+------------- 0.0.0.0 | 0.0.0.0 10.1.0.0 | 255.255.0.0 10.10.0.0 | 255.255.0.0 (3 rows) database=# select inet(routedest), cidr(routemask) from iprouteinterface group by routedest, routemask order by routedest limit 3; inet | cidr -----------+---------------- 0.0.0.0 | 0.0.0.0/32 10.1.0.0 | 255.255.0.0/32 10.10.0.0 | 255.255.0.0/32 (3 rows) database=# select routedest, network(inet(routemask)) from iprouteinterface group by routedest, routemask order by routedest limit 3; routedest | network -----------+---------------- 0.0.0.0 | 0.0.0.0/32 10.1.0.0 | 255.255.0.0/32 10.10.0.0 | 255.255.0.0/32 (3 rows) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs