pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add MODE option to CHECKPOINT command.
Date: Fri, 11 Jul 2025 16:52:09 +0000
Message-ID: <E1uaGyn-005mrK-1q@gemulon.postgresql.org> (raw)

Add MODE option to CHECKPOINT command.

This option may be set to FAST (the default) to request the
checkpoint be completed as fast as possible, or SPREAD to request
the checkpoint be spread over a longer interval (based on the
checkpoint-related configuration parameters).  Note that the server
may consolidate the options for concurrently requested checkpoints.
For example, if one session requests a "fast" checkpoint and
another requests a "spread" checkpoint, the server may perform one
"fast" checkpoint.

Author: Christoph Berg <myon@debian.org>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Discussion: https://postgr.es/m/aDnaKTEf-0dLiEfz%40msg.df7cb.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f698d7f4b7b4c49c3649b2fcc063eb66f9d2e6c

Modified Files
--------------
doc/src/sgml/ref/checkpoint.sgml      | 35 ++++++++++++++++++++++++++++++++---
src/backend/postmaster/checkpointer.c | 28 +++++++++++++++++++++++-----
src/bin/psql/tab-complete.in.c        | 13 +++++++++++++
src/test/regress/expected/stats.out   |  9 +++++++--
src/test/regress/sql/stats.sql        |  6 ++++--
5 files changed, 79 insertions(+), 12 deletions(-)



Message-ID: <E1uaGyn-005mrK-1q@gemulon.postgresql.org>
Permalink:  ../E1uaGyn-005mrK-1q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uaGyn-005mrK-1q@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: nathan@postgresql.org
  Subject: Re: pgsql: Add MODE option to CHECKPOINT command.
  In-Reply-To: <E1uaGyn-005mrK-1q@gemulon.postgresql.org>
  References: <E1uaGyn-005mrK-1q@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