1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-02 09:53:24 +02:00

Check --instance for VALIDATE with target parameters

This commit is contained in:
Arthur Zakirov 2018-02-26 16:26:28 +03:00
parent 025dc07988
commit 615c94c37e

View File

@ -106,6 +106,9 @@ do_restore_or_validate(time_t target_backup_id,
elog(ERROR, "restore destination is not empty: \"%s\"", pgdata);
}
if (instance_name == NULL)
elog(ERROR, "required parameter not specified: --instance");
rt = parseRecoveryTargetOptions(target_time, target_xid, target_inclusive);
elog(LOG, "%s begin.", action);