Re: vacuumdb: add --dry-run - Mailing list pgsql-hackers

From Chao Li
Subject Re: vacuumdb: add --dry-run
Date
Msg-id D34BB1FD-C704-4855-804D-932C054B1981@gmail.com
Whole thread Raw
In response to Re: vacuumdb: add --dry-run  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: vacuumdb: add --dry-run
List pgsql-hackers

> On Dec 9, 2025, at 03:24, Nathan Bossart <nathandbossart@gmail.com> wrote:
>
> On Mon, Dec 08, 2025 at 12:27:26PM -0600, Nathan Bossart wrote:
>> On Mon, Dec 08, 2025 at 07:23:16PM +0100, Álvaro Herrera wrote:
>>> I haven't read this thread, but chanced to come across this and wanted
>>> to note recent commit c05dee191125.  I'm not opposed to changing what
>>> went in there, but let's make them all the same.
>>
>> Ah, that must've been where I stole from originally.  Will switch it back.
>
> As promised...
>
> --
> nathan
>
<v7-0001-vacuumdb-Move-some-options-to-vacuumingOptions-st.patch><v7-0002-Add-ParallelSlotSetIdle.patch><v7-0003-vacuumdb-Add-dry-run.patch>

I searched over the source tree, and find “Running in xxx mode” in initdb and option.c:

Initdb:
```
printf(_("Running in debug mode.\n"));

printf(_("Running in no-clean mode. Mistakes will not be cleaned up.\n"));```

Options.
```
pg_log(PG_REPORT, "Running in verbose mode”);
```

And “”Executing in dry-run mode” in a few commands: pg_archivecleanup.c, pg_createsubscriber.c, pg_combinebackup.c and
pg_rewind.c.

Should we make them all consistent?

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/







pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: [PATCH] Fix inconsistent title attribute tags in documentation
Next
From: David Rowley
Date:
Subject: Re: Introduce Index Aggregate - new GROUP BY strategy