Re: turn fastgetattr and heap_getattr to inline functions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: turn fastgetattr and heap_getattr to inline functions
Date: 2022-03-24 17:05:12
Message-ID: 202203241705.rrrap6cqvpzr@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-03-24 17:10:26 Re: role self-revocation
Previous Message Mark Dilger 2022-03-24 16:49:24 Re: Granting SET and ALTER SYSTE privileges for GUCs