Logical replication launcher did not automatically restart when got SIGKILL

cca5507 <cca5507@qq.com>

From: cca5507 <cca5507@qq.com>
To: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-15T09:25:58Z
Lists: pgsql-hackers

Attachments

Hi, hackers


I found the $SUBJECT, the main reason is that RegisteredBgWorker::rw_pid has not been cleaned.


Attach a patch to fix it.


--
Regards,
ChangAo Chen

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add regression test for background worker restart after crash.

  2. Fix background worker not restarting after crash-and-restart cycle.

  3. Refactor code to handle death of a backend or bgworker in postmaster