pgsql: Add checkpoint and REDO LSN to log_checkpoints message.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add checkpoint and REDO LSN to log_checkpoints message.
Date: 2022-07-07 13:41:37
Message-ID: E1o9RlA-001eBB-Bb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add checkpoint and REDO LSN to log_checkpoints message.

It is useful for debugging purposes to report the checkpoint LSN and
REDO LSN in log_checkpoints message. It can give more context while
analyzing checkpoint-related issues. pg_controldata reports the last
checkpoint LSN and REDO LSN, but having this information alongside
the log message helps analyze issues that happened previously,
connect the dots and identify the root cause.

Author: Bharath Rupireddy, Kyotaro Horiguchi
Reviewed-by: Michael Paquier, Julien Rouhaud, Nathan Bossart, Fujii Masao, Greg Stark
Discussion: https://postgr.es/m/CALj2ACWt6kqriAHrO+AJj+OmP=suwbktHT5JoYAn-nqZe2gd2g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/62c46eee2279eb0300ab7ffe393d0d0dcfafb157

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-07-07 15:24:04 pgsql: Remove stray references to lefttree/righttree in the executor.
Previous Message Dean Rasheed 2022-07-07 12:14:18 pgsql: Fix alias matching in transformLockingClause().