Re: Is there any way to request unique lwlock inside a backgroundworker in PG9.4?

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: Is there any way to request unique lwlock inside a backgroundworker in PG9.4?
Дата
Msg-id CAA4eK1+6edDNLWxHFpDybcp5_HtZ64XcqAF3VcxbK-hG-sJ0kA@mail.gmail.com
обсуждение исходный текст
Ответ на Is there any way to request unique lwlock inside a background workerin PG9.4?  (Hubert Zhang <hzhang@pivotal.io>)
Ответы Re: Is there any way to request unique lwlock inside a backgroundworker in PG9.4?
Список pgsql-hackers
On Wed, Oct 17, 2018 at 3:49 PM Hubert Zhang <hzhang@pivotal.io> wrote:
>
> Hi all,
>
> I want to init SHM in a background worker, which is supported in PG9.4. Also I need to use lwlock to protect the
sharememory inside the worker code.
 
>
> RequestNamedLWLockTranche is the way to handle it, but it's not supported in PG 9.4, is there any way I could request
anunique lock inside worker init code in PG 9.4?
 
>

You might want to look at section "Shared Memory and LWLocks" in the docs [1].

[1] - https://www.postgresql.org/docs/9.4/static/xfunc-c.html

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com


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

Предыдущее
От: Hubert Zhang
Дата:
Сообщение: Is there any way to request unique lwlock inside a background workerin PG9.4?
Следующее
От: Jakob Egger
Дата:
Сообщение: Re: PG vs macOS Mojave