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

@@ -98,6 +98,7 @@
#define OPT_REPMGRD_FORCE_UNPAUSE 1045
#define OPT_REPLICATION_CONFIG_OWNER 1046
#define OPT_DB_CONNECTION 1047
#define OPT_VERIFY_BACKUP 1048
/* These options are for internal use only */
#define OPT_CONFIG_ARCHIVE_DIR 2001
@@ -160,6 +161,7 @@ static struct option long_options[] =
{"upstream-node-id", required_argument, NULL, OPT_UPSTREAM_NODE_ID},
{"without-barman", no_argument, NULL, OPT_WITHOUT_BARMAN},
{"replication-conf-only", no_argument, NULL, OPT_REPLICATION_CONF_ONLY},
{"verify-backup", no_argument, NULL, OPT_VERIFY_BACKUP },
/* deprecate this once Pg11 and earlier are unsupported */
{"recovery-conf-only", no_argument, NULL, OPT_REPLICATION_CONF_ONLY},