Hi David, On the pg_resetwal patch, one question before I write it. A restored backup is never cleanly shut down, so pg_resetwal already needs -f there. A backup_label check that -f overrides would only change the message. I'd rather refuse even with -f, like the postmaster.pid check, and make the user remove backup_label by hand. 058 would then need to remove backup_label before its pg_resetwal step. Does that work for you? Or you would prefer to have a warning message only.
Thanks, Shihao
