From: | hariprasath nallasamy <hariprasathnallasamy(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Difficult while acquiring LWLocks |
Date: | 2017-05-03 11:08:25 |
Message-ID: | CAGgejVy=-isk66MVE+TsAzVGaPRD_ijSf3zrF6Ks2+_BRvhNWQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi all
There is an use case, where i want some 10 LightWeight Locks and after
9.6 LW locks api's (LWLockAssign) are changed a bit and i am confused too.
Only reference i cant get was from pg_stat_statement :(
Since GetNamedLWLockTranche method will return the base address of the
specified tranche.
From pg_init
*" RequestNamedLWLockTranche("Some_10_LWLocks", 10); "*For getting those
locks which were requested from pg_init
*" LWLockPadded *lwLockPadded = GetNamedLWLockTranche("Some_10_LWLocks");
LWLock *lock = &(lwLockPadded[index in 0 to 9]).lock; "*
Is the above code snippet a valid for requesting some 10 LWLocks?
TIA
harry
From | Date | Subject | |
---|---|---|---|
Next Message | Julien Rouhaud | 2017-05-03 12:43:37 | Re: Difficult while acquiring LWLocks |
Previous Message | Thomas Güttler | 2017-05-03 10:57:47 | Caching and Blobs in PG? Was: Can PG replace redis, amqp, s3 in the future? |