Re: Initializing LWLock Array from Server Code - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Initializing LWLock Array from Server Code
Date
Msg-id CA+TgmoabR=TVoun8qOFGyReo2LakcTeQcV-ts4LKFxoM3vLTXw@mail.gmail.com
Whole thread Raw
In response to Re: Initializing LWLock Array from Server Code  (Souvik Bhattacherjee <kivuosb@gmail.com>)
List pgsql-hackers
On Tue, Apr 30, 2019 at 5:52 PM Souvik Bhattacherjee <kivuosb@gmail.com> wrote:
> Thank you for your reply and sorry that I couldn't reply earlier.
> Since I didn't get any response within a couple of days, I took the longer route -- changed the lwlock.h and
lwlock.c
> for accommodating the lw locks for the shared hash table.
>
> I'll describe what I modified in the lwlock.h and lwlock.c and it seems to be working fine. Although I haven't got an
opportunity
> to test it extensively. If you could let me know if I missed out anything that might cause problems later that would
begreat.
 

Well, I can't really vouch for your code on a quick look, but it
doesn't look insane.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Adding a test for speculative insert abort case
Next
From: Tomas Vondra
Date:
Subject: walsender vs. XLogBackgroundFlush during shutdown