Re: Use macros for calculating LWLock offset - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Use macros for calculating LWLock offset
Date
Msg-id 20201120062550.GD8506@paquier.xyz
Whole thread Raw
In response to Use macros for calculating LWLock offset  (japin <japinli@hotmail.com>)
Responses Re: Use macros for calculating LWLock offset  (Michael Paquier <michael@paquier.xyz>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH 1/1] Fix compilation on mac with Xcode >= 11.4.
Next
From: Michael Paquier
Date:
Subject: Re: don't allocate HashAgg hash tables when running explain only