Re: [HACKERS] Latches API on windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Latches API on windows
Дата
Msg-id 12956.1507557370@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Latches API on windows  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: [HACKERS] Latches API on windows  (Abbas Butt <abbas.butt@enterprisedb.com>)
Re: [HACKERS] Latches API on windows  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Craig Ringer <craig@2ndquadrant.com> writes:
> On 9 October 2017 at 21:26, Abbas Butt <abbas.butt@enterprisedb.com> wrote:
>> In my case this is not true, I am calling InitSharedLatch in _PG_init
>> which gets called at CREATE EXTENSION time.
>> My question : Is there a way to get the latches API work on windows
>> the way it is working on Linux?

> I suspect you'd need to do it by having your extension load via
> shared_preload_libraries, registering its latch in shmem_startup_hook

Yeah.  That would also let you request your shared memory area honestly,
instead of relying on there being some slop in the initial allocation.
        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] Latches API on windows
Следующее
От: Abbas Butt
Дата:
Сообщение: Re: [HACKERS] Latches API on windows