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 option list to CHECKPOINT command.
Date: Fri, 11 Jul 2025 16:52:09 +0000
Message-ID: <E1uaGyn-005mrI-1n@gemulon.postgresql.org> (raw)

Add option list to CHECKPOINT command.

This commit adds the boilerplate code for supporting a list of
options in CHECKPOINT commands.  No actual options are supported
yet, but follow-up commits will add support for MODE and
FLUSH_UNLOGGED.  While at it, this commit refactors the code for
executing CHECKPOINT commands to its own function since it's about
to become significantly larger.

Author: Christoph Berg <myon@debian.org>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Discussion: https://postgr.es/m/aDnaKTEf-0dLiEfz%40msg.df7cb.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4f126516e688736bfed332b44a0c221b8dc118a

Modified Files
--------------
doc/src/sgml/ref/checkpoint.sgml      | 11 ++++++++++-
src/backend/parser/gram.y             |  7 +++++++
src/backend/postmaster/checkpointer.c | 31 +++++++++++++++++++++++++++++++
src/backend/tcop/utility.c            | 12 +-----------
src/bin/psql/tab-complete.in.c        |  3 +++
src/include/nodes/parsenodes.h        |  1 +
src/include/postmaster/bgwriter.h     |  2 ++
src/test/regress/expected/stats.out   |  6 ++++++
src/test/regress/sql/stats.sql        |  3 +++
9 files changed, 64 insertions(+), 12 deletions(-)



Message-ID: <E1uaGyn-005mrI-1n@gemulon.postgresql.org>
Permalink:  ../E1uaGyn-005mrI-1n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uaGyn-005mrI-1n@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add option list to CHECKPOINT command.
  In-Reply-To: <E1uaGyn-005mrI-1n@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