pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add checkpoint and REDO LSN to log_checkpoints message.
Date: Thu, 07 Jul 2022 13:41:37 +0000
Message-ID: <E1o9RlA-001eBB-Bb@gemulon.postgresql.org> (raw)

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



Message-ID: <E1o9RlA-001eBB-Bb@gemulon.postgresql.org>
Permalink:  ../E1o9RlA-001eBB-Bb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1o9RlA-001eBB-Bb@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Add checkpoint and REDO LSN to log_checkpoints message.
  In-Reply-To: <E1o9RlA-001eBB-Bb@gemulon.postgresql.org>
  References: <E1o9RlA-001eBB-Bb@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