Add option --verify-backup

This causes pg_verifybackup to be executed immediately after
pg_basebackup completes.

PostreSQL 13 and later.
This commit is contained in:
Ian Barwick
2020-09-03 10:40:17 +09:00
parent c8e52e486f
commit 9a836b3c04
6 changed files with 96 additions and 2 deletions

View File

@@ -433,6 +433,10 @@ main(int argc, char **argv)
runtime_options.replication_conf_only = true;
break;
/* --verify-backup */
case OPT_VERIFY_BACKUP:
runtime_options.verify_backup = true;
break;
/*---------------------------
* "standby register" options