Re: BUG #18158: Assert in pgstat_report_stat() fails when a backend shutting down with stats pending

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Xuneng Zhou <xunengzhou@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2026-06-05T05:03:53Z
Lists: pgsql-bugs
On Fri, Jun 05, 2026 at 08:00:00AM +0300, Alexander Lakhin wrote:
> As far as I can see, that rand() gives the same sequence on macOS each run,
> while on Linux I see different sequences.

Aye.  I have used that before sending the patch, reproducing the
failure before-patch, getting things to work after-patch.
--
Michael

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Lift shutdown assertion in pgstats for WAL senders