BUG #18712: inet value ::2 handling goes not as expected - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18712: inet value ::2 handling goes not as expected
Date
Msg-id 18712-f787a146022a78e4@postgresql.org
Whole thread Raw
Responses Re: BUG #18712: inet value ::2 handling goes not as expected
List pgsql-bugs
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


pgsql-bugs by date:

Previous
From: Noah Misch
Date:
Subject: Re: Today's Postgres Releases break login roles
Next
From: Matthew Woodcraft
Date:
Subject: Re: Today's Postgres Releases break login roles