Re: Switch background worker on/off in runtime.

2024-06-02 Thread Peter Eisentraut
On 31.05.24 11:28, ISHAN CHHANGANI . wrote: Is it possible to switch on/off a background worker in runtime? worker.bgw_flags =BGWORKER_SHMEM_ACCESS; worker.bgw_start_time =BgWorkerStart_PostmasterStart; I want to switch off the worker based on some flag value, etc, either from the main proces

Re: Switch background worker on/off in runtime.

2024-05-31 Thread Kashif Zeeshan
Hi ISHAN On Fri, May 31, 2024 at 2:28 PM ISHAN CHHANGANI . < f20200...@hyderabad.bits-pilani.ac.in> wrote: > Hi, > > Is it possible to switch on/off a background worker in runtime? > As per my understanding there is no such way to do it on runtime. But you can kill it by using the following com

Switch background worker on/off in runtime.

2024-05-31 Thread ISHAN CHHANGANI .
Hi, Is it possible to switch on/off a background worker in runtime? worker.bgw_flags = BGWORKER_SHMEM_ACCESS; worker.bgw_start_time = BgWorkerStart_PostmasterStart; I want to switch off the worker based on some flag value, etc, either from the main process or the worker itself. Are there any al