Re: Initializing LWLock Array from Server Code

2019-04-30 Thread Robert Haas
Replying to myself to resend to the list, since my previous attempt seems to have been eaten by a grue. On Mon, Apr 29, 2019 at 1:59 PM Robert Haas wrote: > > On Fri, Apr 26, 2019 at 2:58 PM Souvik Bhattacherjee > wrote: > > I have created a shared hash table in partitioned mode inside the post

Re: Initializing LWLock Array from Server Code

2019-04-30 Thread Robert Haas
On Tue, Apr 30, 2019 at 5:52 PM Souvik Bhattacherjee 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

Re: Initializing LWLock Array from Server Code

2019-04-30 Thread Souvik Bhattacherjee
Hi Robert, 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.

Initializing LWLock Array from Server Code

2019-04-26 Thread Souvik Bhattacherjee
Hi, I have created a shared hash table in partitioned mode inside the postgres server code. In order to guard the partitions, I'm trying to initialize an array of LWLocks. The code that I'm trying to use for that is void RequestNamedLWLockTranche