From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add redo LSN to pgstats files
Date: Thu, 01 Aug 2024 16:59:02 +0000
Message-ID: <E1sZZ8o-002DwB-AK@gemulon.postgresql.org> (raw)
Add redo LSN to pgstats files
This is used in the startup process to check that the pgstats file we
are reading includes the redo LSN referring to the shutdown checkpoint
where it has been written. The redo LSN in the pgstats file needs to
match with what the control file has.
This is intended to be used for an upcoming change that will extend the
write of the stats file to happen during checkpoints, rather than only
shutdown sequences.
Bump PGSTAT_FILE_FORMAT_ID.
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/Zp8o6_cl0KSgsnvS@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b860848232aab440c9ac4c5de3563565e3d2934b
Modified Files
--------------
src/backend/access/transam/xlog.c | 2 +-
src/backend/utils/activity/pgstat.c | 41 +++++++++++++++++++++++++++++--------
src/include/pgstat.h | 5 +++--
3 files changed, 36 insertions(+), 12 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 redo LSN to pgstats files
In-Reply-To: <E1sZZ8o-002DwB-AK@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