Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending - Mailing list pgsql-bugs

From Xuneng Zhou
Subject Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending
Date
Msg-id CABPTF7XWsFgfAqqTv2epcMQs+vT6EMg_j43F8CSJ7Cjsv8QLJQ@mail.gmail.com
Whole thread
Responses Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending
List 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.



pgsql-bugs by date:

Previous
From: Srinath Reddy Sadipiralla
Date:
Subject: Re: BUG #19491: Segmentation fault triggered by IS NULL
Next
From: Hüseyin Demir
Date:
Subject: Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table