Re: Background Processes in Postgres Extension - Mailing list pgsql-hackers

From Sushrut Shivaswamy
Subject Re: Background Processes in Postgres Extension
Date
Msg-id CAH5mb9_KKVd6NX0orydN0g82Er+KkYrdtLM90VLRN2_ENCqLGQ@mail.gmail.com
Whole thread Raw
In response to Re: Background Processes in Postgres Extension  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Background Processes in Postgres Extension
List pgsql-hackers
Thanks for the suggestion on using postgres background worker.

I tried creating one following the implementation in worker_spi and am able to spawn a background worker successfully.

However, the background worker seems to cause postmaster to crash when I wait for it to finish using `WaitForBackgroundWorkerShutdown.
The function called by the background worker is empty except for logging a message to disk.

Any ideas on what could be going wrong / tips for debugging?

Thanks,
Sushrut 


pgsql-hackers by date:

Previous
From: Kashif Zeeshan
Date:
Subject: Re: Help update PostgreSQL 13.12 to 13.14
Next
From: Kashif Zeeshan
Date:
Subject: Re: Read table rows in chunks