pgsql: Log checkpoint request flags in checkpoint completion messages.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Log checkpoint request flags in checkpoint completion messages.
Date: 2026-02-19 14:56:02
Message-ID: E1vt5Ri-0009PJ-17@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log checkpoint request flags in checkpoint completion messages.

Checkpoint completion log messages include more detail than checkpoint
start messages, but previously omitted the checkpoint request flags,
which were only logged at checkpoint start. As a result, users had to
correlate completion messages with earlier start messages to see
the full context.

This commit includes the checkpoint request flags in the checkpoint
completion log message as well. This duplicates some information,
but makes the completion message self-contained and easier to interpret.

Author: Soumya S Murali <soumyamurali(dot)work(at)gmail(dot)com>
Reviewed-by: Michael Banck <mbanck(at)gmx(dot)net>
Reviewed-by: Yuan Li <carol(dot)li2025(at)outlook(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAMtXxw9tPwV=NBv5S9GZXMSKPeKv5f9hRhSjZ8__oLsoS5jcuA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b93a5987bd704d2363295eee919eee45f84c286

Modified Files
--------------
src/backend/access/transam/xlog.c | 60 +++++++++++++++++++++++----------------
1 file changed, 35 insertions(+), 25 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-02-19 16:02:36 pgsql: Add per-subscription wal_receiver_timeout setting.
Previous Message Peter Eisentraut 2026-02-19 08:07:49 pgsql: Use fallthrough attribute instead of comment