From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more debugging information when failing to read pgstats file
Date: Tue, 30 Jul 2024 06:14:01 +0000
Message-ID: <E1sYg7V-001qxI-0J@gemulon.postgresql.org> (raw)
Add more debugging information when failing to read pgstats files
This is useful to know which part of a stats file is corrupted when
reading it, adding to the server logs a WARNING with details about what
could not be read before giving up with the remaining data in the file.
Author: Michael Paquier
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Zp8o6_cl0KSgsnvS@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ca1ba50fcb6f85ac603aecbc184c7c59886c2a7c
Modified Files
--------------
src/backend/utils/activity/pgstat.c | 66 ++++++++++++++++++++++++++++++++++---
1 file changed, 62 insertions(+), 4 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add more debugging information when failing to read pgstats file
In-Reply-To: <E1sYg7V-001qxI-0J@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox