Re[2]: Async_Notify

2019-12-13 Thread Арсен Арутюнян
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 di

Re: Re[2]: Async_Notify

2019-12-13 Thread Pavel Stehule
pá 13. 12. 2019 v 12:30 odesílatel Арсен Арутюнян napsal: > 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 = MemoryC

Re: Async_Notify

2019-12-13 Thread Pavel Stehule
Hi pá 13. 12. 2019 v 10:00 odesílatel Арсен Арутюнян napsal: > Hello! I wrote my extension for PG and am trying to run Async_Notify from > it. But messages come very late! Sometimes only after I execute the notify > command from the shell. What am I doing wrong? How to use Asy

Async_Notify

2019-12-13 Thread Арсен Арутюнян
Hello! I wrote my extension for PG and am trying to run Async_Notify from it. But messages come very late! Sometimes only after I execute the notify command from the shell. What am I doing wrong? How to use Async_Notify correctly.   -- Арсен Арутюнян