BUG #18712: inet value ::2 handling goes not as expected

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: denis(dot)feklushkin(at)gmail(dot)com
Subject: BUG #18712: inet value ::2 handling goes not as expected
Date: 2024-11-16 06:50:10
Message-ID: 18712-f787a146022a78e4@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18712
Logged by: Denis Feklushkin
Email address: denis(dot)feklushkin(at)gmail(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Matthew Woodcraft 2024-11-16 10:45:30 Re: Today's Postgres Releases break login roles
Previous Message Noah Misch 2024-11-16 04:53:58 Re: Today's Postgres Releases break login roles