pgsql: Add more debugging information when failing to read pgstats file

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more debugging information when failing to read pgstats file
Date: 2024-07-30 06:14:01
Message-ID: E1sYg7V-001qxI-0J@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2024-07-30 06:53:53 pgsql: Short-circuit sort_inner_and_outer if there are no mergejoin cla
Previous Message Amit Langote 2024-07-30 02:00:50 pgsql: SQL/JSON: Some fixes to JsonBehavior expression casting