Re: pg_resetwal: add --cluster-state option

From: Sho Ito <i(dot)sho(dot)0628(at)gmail(dot)com>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>, David Steele <david(at)pgbackrest(dot)org>
Subject: Re: pg_resetwal: add --cluster-state option
Date: 2026-10-10 15:47:09
Message-ID: CAG7L5+7q7-Gq5OEWaWYx7+eP7Qej88k9F7BP7c7u-C2_w=3w6g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Oct 9, 2026 at 1:02 AM shihao zhong <zhong950419(at)gmail(dot)com> wrote:

> Hi Sho, Chao,
>
> Thanks for looking. v2 is attached.
>
> Sho Ito wrote:
> > I noticed that an invalid value for `--cluster-state` directs the user
> > to `--help`, but the help output doesn't list the accepted values.
>
> Agreed, --help lists them now.
>

Hi Shihao,

Thanks. I built v2 on master with assertions enabled and verified the help
output and current/new state display in `--dry-run`. All six accepted states
were stored correctly.

Thanks,
Sho

--
=======================================
*Sho Ito (Sean)*

E-mail: i(dot)sho(dot)0628(at)gmail(dot)com
LinkedIn: *https://www.linkedin.com/in/sho-ito-0628/
<https://www.linkedin.com/in/sho-ito-0628/>*
GitHub: https://github.com/sean0628/
=======================================

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan S. Katz 2026-10-10 15:52:42 Updated PostgreSQL RC / GA dates
Previous Message Fujii Masao 2026-10-10 15:37:36 Re: [PG19] Wrong results from NOT NULL-based expression simplification