Re: turn fastgetattr and heap_getattr to inline functions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: turn fastgetattr and heap_getattr to inline functions
Дата
Msg-id 202203241705.rrrap6cqvpzr@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: turn fastgetattr and heap_getattr to inline functions  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: Granting SET and ALTER SYSTE privileges for GUCs
Следующее
От: Tom Lane
Дата:
Сообщение: Re: role self-revocation