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

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #18712: inet value ::2 handling goes not as expected
Дата
Msg-id 18712-f787a146022a78e4@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #18712: inet value ::2 handling goes not as expected
Список 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 по дате отправления: