Re: Use macros for calculating LWLock offset

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Use macros for calculating LWLock offset
Дата
Msg-id 20201120062550.GD8506@paquier.xyz
обсуждение исходный текст
Ответ на Use macros for calculating LWLock offset  (japin <japinli@hotmail.com>)
Ответы Re: Use macros for calculating LWLock offset
Список pgsql-hackers
On Thu, Nov 19, 2020 at 03:39:51PM +0800, japin wrote:
> In the lwlock.c, InitializeLWLocks() calculate the LWLock offset by itself
> (c319991bcad),
> however, there are macros defined in lwlock.h, I think, we can use the
> macros.

I agree that this makes this code a bit cleaner, so let's use those
macros.  Others may have some comments here, so let's wait a bit
first.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH 1/1] Fix compilation on mac with Xcode >= 11.4.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: don't allocate HashAgg hash tables when running explain only