Add option list to CHECKPOINT command.
authorNathan Bossart <nathan@postgresql.org>
Fri, 11 Jul 2025 16:51:25 +0000 (11:51 -0500)
committerNathan Bossart <nathan@postgresql.org>
Fri, 11 Jul 2025 16:51:25 +0000 (11:51 -0500)
commita4f126516e688736bfed332b44a0c221b8dc118a
treeb921beb43ae0acd7a8ce510896e2c6d1b06fd831
parentbb938e2c3c7a955090f8b68b5bf75d064f6a36a0
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
doc/src/sgml/ref/checkpoint.sgml
src/backend/parser/gram.y
src/backend/postmaster/checkpointer.c
src/backend/tcop/utility.c
src/bin/psql/tab-complete.in.c
src/include/nodes/parsenodes.h
src/include/postmaster/bgwriter.h
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql