Re: BUG #19039: UNREACHABLE_CODE: Remove unreachable code in network_send - replace with assertion - Mailing list pgsql-bugs

From Daniel Gustafsson
Subject Re: BUG #19039: UNREACHABLE_CODE: Remove unreachable code in network_send - replace with assertion
Date
Msg-id 7388F082-82AE-46B9-B613-B9663BC7F7D6@yesql.se
Whole thread Raw
In response to BUG #19039: UNREACHABLE_CODE: Remove unreachable code in network_send - replace with assertion  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
> On 2 Sep 2025, at 09:06, PG Bug reporting form <noreply@postgresql.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




pgsql-bugs by date:

Previous
From: "zhouenbing"
Date:
Subject: empty,query_id, pg_stat_activity
Next
From: Maxim Michkov
Date:
Subject: Re: BUG #18575: Sometimes pg_rewind mistakenly assumes that nothing needs to be done.