Re: BUG #19039: UNREACHABLE_CODE: Remove unreachable code in network_send - replace with assertion

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: gorcom2012(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19039: UNREACHABLE_CODE: Remove unreachable code in network_send - replace with assertion
Date: 2025-09-02 11:54:06
Message-ID: 7388F082-82AE-46B9-B613-B9663BC7F7D6@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 2 Sep 2025, at 09:06, PG Bug reporting form <noreply(at)postgresql(dot)org> wrote:

> if (nb < 0)
> nb = 0;
>
> is unreachable because the ip_addrsize(addr) function can only return one of
> two possible values:

Thanks for the report, this has already been fixed in f27eb0325b7b.

--
Daniel Gustafsson

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Maxim Michkov 2025-09-02 14:12:14 Re: BUG #18575: Sometimes pg_rewind mistakenly assumes that nothing needs to be done.
Previous Message zhouenbing 2025-09-02 09:25:31 empty,query_id, pg_stat_activity