Re: CHECKPOINT unlogged data

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Christoph Berg <myon(at)debian(dot)org>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: CHECKPOINT unlogged data
Date: 2025-06-18 16:15:15
Message-ID: aFLmE2zl038I7-F1@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I broke this up into several small patches. Notable changes are as
follows:

* Adjusted to the tab completion code to work more like the VACUUM utility
options.

* Introduced a new ExecCheckpoint() function in checkpointer.c and moved
the privilege check and options parsing there.

* Removed the notes in the docs about when to use the CHECKPOINT command.
I'm not opposed to adding something like that (in fact, I think it's a
good idea), but IMHO we should bikeshed on that separately, maybe even in
a new thread.

Thoughts?

--
nathan

Attachment Content-Type Size
v7-0001-rename-CHECKPOINT_FLUSH_ALL-to-CHECKPOINT_FLUSH_U.patch text/plain 4.8 KB
v7-0002-rename-CHECKPOINT_IMMEDIATE-to-CHECKPOINT_FAST.patch text/plain 16.5 KB
v7-0003-add-option-list-to-checkpoint-command.patch text/plain 6.0 KB
v7-0004-add-mode-option-to-checkpoint-command.patch text/plain 6.8 KB
v7-0005-add-flush_unlogged-option-to-checkpoint-command.patch text/plain 4.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-06-18 16:17:16 Re: minimum Meson version
Previous Message Andres Freund 2025-06-18 16:08:17 Re: Non-reproducible AIO failure