Re: turn fastgetattr and heap_getattr to inline functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: turn fastgetattr and heap_getattr to inline functions
Date
Msg-id 202203241705.rrrap6cqvpzr@alvherre.pgsql
Whole thread Raw
In response to Re: turn fastgetattr and heap_getattr to inline functions  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
On 2022-Mar-24, Peter Eisentraut wrote:

> But no compiler is stupid enough not to understand that
> 
> foo()
> {
>     if (something)
>         return this;
>     else
>         return that;
> }
> 
> always reaches a return.

We have a number of examples of this pattern, so I guess it must be
true.  Pushed without the pg_unreachables, then.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Las navajas y los monos deben estar siempre distantes"   (Germán Poo)



pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: Granting SET and ALTER SYSTE privileges for GUCs
Next
From: Tom Lane
Date:
Subject: Re: role self-revocation