Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending
Xuneng Zhou <xunengzhou@gmail.com>
From: Xuneng Zhou <xunengzhou@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alexander Lakhin <exclusion@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2026-06-06T12:45:26Z
Lists: pgsql-bugs
Hi Michael, On Sat, Jun 6, 2026 at 8:13 AM Michael Paquier <michael@paquier.xyz> wrote: > > On Fri, Jun 05, 2026 at 08:00:00AM +0300, Alexander Lakhin wrote: > > Thank you for the fix! > > Applied as of 4801610f7c66 in the v15~17 range. Sorry for being late. One nit for the patch -- would it be better to use AmWalSenderProcess() for identification to save the include? +#include "replication/walsender.h" -- Regards, Xuneng Zhou HighGo Software Co., Ltd.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Lift shutdown assertion in pgstats for WAL senders
- eeed86523bb9 15 (unreleased) landed
- 830b476d0bea 16 (unreleased) landed
- 4801610f7c66 17 (unreleased) landed