Re: turn fastgetattr and heap_getattr to inline functions

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

> Thanks for your detail explaination.  I find bottomup_sort_and_shrink_cmp()
> has smilar code

... except that bottomup_sort_and_shrink_cmp never handles the case of
the two structs being exactly identical, so I don't think this is a
great counter-example.

> IIUC, the last statement is used to keep the compiler quiet.  However,
> it doesn't exist in LWLockAttemptLock().  Why?

What I do care about is the fact that LWLockAttemptLock does compile
silently everywhere without a final "return dummy_value" statement.  I
don't have to build a theory for why the other function has a statement
that may or may not be actually doing anything.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Los dioses no protegen a los insensatos.  Éstos reciben protección de
otros insensatos mejor dotados" (Luis Wu, Mundo Anillo)



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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Probable memory leak with ECPG and AIX
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [PATCH] pgbench: add multiconnect option