pgsql: Add MODE option to CHECKPOINT command.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add MODE option to CHECKPOINT command.
Date: 2025-07-11 16:52:09
Message-ID: E1uaGyn-005mrK-1q@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)debian(dot)org>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Reviewed-by: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Reviewed-by: Dilip Kumar <dilipbalaut(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jacob Champion 2025-07-11 17:32:42 pgsql: oauth: Run Autoconf tests with correct compiler flags
Previous Message Tom Lane 2025-07-11 16:49:26 pgsql: Force LC_NUMERIC to C while running TAP tests.