[PATCH] Update HandleChildCrash comments

From: Tender Wang <tndrwang(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH] Update HandleChildCrash comments
Date: 2026-03-17 05:24:16
Message-ID: CAHewXNmMMg9_5ko9Rybt-1Q45f+M5=01TwyPFuEAV5Xcip7tcw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello hackers,

The existing header comments for HandleChildCrash() in postmaster.c
are somewhat outdated,
as they only list a few auxiliary processes and miss several newer
ones added in recent versions, for example: walsummarizer, and
io_worker.

Instead of maintaining an exhaustive list of process names in the
comments, which can become stale.
This patch updates the comments to point directly to the
decision-making places: process_pm_child_exit() and CleanupBackend().

I have preserved the original description regarding the function's
objectives (cleaning up local state and signaling other children).

Please see the attached patch.

--
Thanks,
Tender Wang

Attachment Content-Type Size
0001-Clarify-HandleChildCrash-comments-and-reference-its-.patch application/octet-stream 1.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2026-03-17 05:25:51 Re: Report bytes and transactions actually sent downtream
Previous Message Haibo Yan 2026-03-17 05:16:58 Re: Return pg_control from pg_backup_stop().