Re: turn fastgetattr and heap_getattr to inline functions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: turn fastgetattr and heap_getattr to inline functions
Дата
Msg-id 202203241326.puromteoovaz@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: turn fastgetattr and heap_getattr to inline functions  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: turn fastgetattr and heap_getattr to inline functions  (Japin Li <japinli@hotmail.com>)
Список pgsql-hackers
On 2022-Mar-24, Michael Paquier wrote:

> 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.

Hmm, OK to do something about that.  I added pg_unreachable(): looking
at LWLockAttemptLock(), it looks that that should be sufficient.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/

Вложения

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

Предыдущее
От: Dagfinn Ilmari Mannsåker
Дата:
Сообщение: Re: multithreaded zstd backup compression for client and server
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Remove an unnecessary errmsg_plural in dependency.c