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