Re: BUG #7832: incorrect summation of ipv6 addresses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: shuklin(at)selectel(dot)ru
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7832: incorrect summation of ipv6 addresses
Date: 2013-01-28 16:09:11
Message-ID: 16720.1359389351@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

shuklin(at)selectel(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2013-01-28 20:00:06 Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
Previous Message shuklin 2013-01-28 12:58:09 BUG #7832: incorrect summation of ipv6 addresses