Re: Add --system-identifier / -s option to pg_resetwal

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Nikolay Samokhvalov <nik(at)postgres(dot)ai>, pgsql-hackers mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add --system-identifier / -s option to pg_resetwal
Date: 2025-06-04 04:49:31
Message-ID: 3901ecf7-def2-4718-86f4-64ef48758f8c@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 31.05.25 20:52, Nikolay Samokhvalov wrote:
> the attached patch adds a new -s / --system-identifier option to
> pg_resetwal that allows users to change the database cluster's system
> identifier; it can be useful when you need to make a restored cluster
> distinct from the original, or when cloning for testing

Maybe we can stop eating up short options? A long option seems
sufficient for this.

> - requires interactive confirmation or --force flag for safety

I don't see the need for interactive confirmation here. The user would
have explicitly chosen the option, so they get what they asked for.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-06-04 05:11:55 Re: fix notes about password encryption in pg_authid docs
Previous Message Michael Paquier 2025-06-04 04:42:06 Re: [PATCH] PGSERVICEFILE as part of a normal connection string