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

From Michael Paquier
Subject Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending
Date
Msg-id aiZXx0Nh-P3pVQjo@paquier.xyz
Whole thread
In response to Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending  (Xuneng Zhou <xunengzhou@gmail.com>)
Responses Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending
List pgsql-bugs
On Sat, Jun 06, 2026 at 08:45:26PM +0800, Xuneng Zhou wrote:
> 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"

In the startup sequence, MyBackendType is updated to B_WAL_SENDER a
couple of lines after am_walsender.  One or the other don't really
matter; they're both right.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table
Next
From: Xuneng Zhou
Date:
Subject: Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending