From: Tom Lane <tgl@sss.pgh.pa.us>
To: shuklin@selectel.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7832: incorrect summation of ipv6 addresses
Date: Mon, 28 Jan 2013 11:09:11 -0500
Message-ID: <16720.1359389351@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TzoHp-0004Rk-JF@wrigleys.postgresql.org>
References: <E1TzoHp-0004Rk-JF@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, shuklin@selectel.ru
Subject: Re: BUG #7832: incorrect summation of ipv6 addresses
In-Reply-To: <16720.1359389351@sss.pgh.pa.us>
References: <E1TzoHp-0004Rk-JF@wrigleys.postgresql.org> <16720.1359389351@sss.pgh.pa.us>
* 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