Re: turn fastgetattr and heap_getattr to inline functions

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: turn fastgetattr and heap_getattr to inline functions
Дата
Msg-id YjxfdpEcOBfIgmuH@paquier.xyz
обсуждение исходный текст
Ответ на turn fastgetattr and heap_getattr to inline functions  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: turn fastgetattr and heap_getattr to inline functions  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: turn fastgetattr and heap_getattr to inline functions  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
On Thu, Mar 24, 2022 at 11:21:07AM +0100, Alvaro Herrera wrote:
> This patch should silence some recent Coverity (false positive)
> complaints about assertions contained in these macros.

The logic looks fine.  Good idea to get rid of DISABLE_COMPLEX_MACRO.

> Portability testing at:
> https://cirrus-ci.com/github/alvherre/postgres/macros-to-inlinefuncs
>
> Intend to push later today, unless something ugly happens.

Hmm.  I think that you'd better add a return at the end of each
function?  Some compilers are dumb in detecting that all the code
paths return (aka recent d0083c1) and could generate warnings, even if
things are coded to return all the time, like in your patch.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [PATCH] add relation and block-level filtering to pg_waldump
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Estimating HugePages Requirements?