Re: BUG #7832: incorrect summation of ipv6 addresses - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7832: incorrect summation of ipv6 addresses
Date
Msg-id 16720.1359389351@sss.pgh.pa.us
Whole thread Raw
In response to BUG #7832: incorrect summation of ipv6 addresses  (shuklin@selectel.ru)
List pgsql-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

pgsql-bugs by date:

Previous
From: shuklin@selectel.ru
Date:
Subject: BUG #7832: incorrect summation of ipv6 addresses
Next
From: Alvaro Herrera
Date:
Subject: Re: Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"