Re[2]: Async_Notify
| От | Арсен Арутюнян | 
|---|---|
| Тема | Re[2]: Async_Notify | 
| Дата | |
| Msg-id | 1576236621.238859707@f116.i.mail.ru обсуждение исходный текст | 
| Ответ на | Re: Async_Notify (Pavel Stehule <pavel.stehule@gmail.com>) | 
| Список | pgsql-hackers | 
I'm trying to send a notification from the PG extension directly.
It turns out the mechanism that is used in the async file. (Async_Notify) does not suit me since the function uses oldcontext = MemoryContextSwitchTo (CurTransactionContext); and MemoryContextSwitchTo (oldcontext);
And I did not find the ability to add notification except the Async_Notify function.
And I did not find the ability to add notification except the Async_Notify function.
Now only SPI_execute works ("NOTIFY chanel,’message’", false, 0);
P.S. In my extension, there is already a higher function started with oldcontext = MemoryContextSwitchTo (CurTransactionContext); and MemoryContextSwitchTo (oldcontext);
Пятница, 13 декабря 2019, 12:19 +03:00 от Pavel Stehule <pavel.stehule@gmail.com>:
Арсен Арутюнян
--
Арсен Арутюнян
Арсен Арутюнян
В списке pgsql-hackers по дате отправления: