Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 615c94c

Browse files
committed
Check --instance for VALIDATE with target parameters
1 parent 025dc07 commit 615c94c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/restore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ do_restore_or_validate(time_t target_backup_id,
106106
elog(ERROR, "restore destination is not empty: \"%s\"", pgdata);
107107
}
108108

109+
if (instance_name == NULL)
110+
elog(ERROR, "required parameter not specified: --instance");
111+
109112
rt = parseRecoveryTargetOptions(target_time, target_xid, target_inclusive);
110113

111114
elog(LOG, "%s begin.", action);

0 commit comments

Comments
 (0)