The following bug has been logged on the website:
Bug reference: 18712
Logged by: Denis Feklushkin
Email address: denis.feklushkin@gmail.com
PostgreSQL version: 17.1
Operating system: Debian
Description:
I think that statement
select '::0.0.0.2'::inet;
should return '::0.0.0.2' value, not '::2'
I think this is what was intended in the Postgres sources. But it seems that
this line is never executed:
https://github.com/postgres/postgres/blob/7b88529f4363994450bd4cd3c172006a8a77e222/src/port/inet_net_ntop.c#L260