Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzrGn-0008Tb-4b for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2013 16:09:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TzrGm-0000h8-17 for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Jan 2013 16:09:16 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzrGl-0000h3-FN for pgsql-bugs@postgresql.org; Mon, 28 Jan 2013 16:09:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TzrGj-0007zI-CK for pgsql-bugs@postgresql.org; Mon, 28 Jan 2013 16:09:15 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0SG9Buq016721; Mon, 28 Jan 2013 11:09:11 -0500 (EST) From: Tom Lane To: shuklin@selectel.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7832: incorrect summation of ipv6 addresses In-reply-to: References: Comments: In-reply-to shuklin@selectel.ru message dated "Mon, 28 Jan 2013 12:58:09 +0000" Date: Mon, 28 Jan 2013 11:09:11 -0500 Message-ID: <16720.1359389351@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 shuklin@selectel.ru writes: > SELECT cidr'0::1/128'+65535; > ?column? > ----------- > ::0.1.0.0 > (strange dots in the middle of the ipv6 address). The code in inet_net_ntop_ipv6 (which we got from the BIND project, we didn't invent it ourselves) appears to believe that values in this range should be printed in encapsulated-IPv4 format. Unless you can cite chapter and verse why that's wrong, I'm disinclined to change it. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs