Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc76fb1

Browse files
committed
add verbose message
1 parent 01e57ea commit dc76fb1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/help.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ help_validate(void)
462462
printf(_(" the named restore point to which recovery will proceed\n"));
463463
printf(_(" --skip-block-validation set to validate only file-level checksum\n"));
464464

465-
printf(_(" --db-include dbname restore only specified databases\n"));
466-
printf(_(" --db-exclude dbname do not restore specified databases\n"));
465+
printf(_(" --db-include dbname validate only files of specified databases\n"));
466+
printf(_(" --db-exclude dbname do not validate files of specified databases\n"));
467467

468468
printf(_("\n Logging options:\n"));
469469
printf(_(" --log-level-console=log-level-console\n"));

src/validate.c

+4
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ pgBackupValidateFiles(void *arg)
207207
if (arguments->dbOid_exclude_list && file->external_dir_num == 0
208208
&& parray_bsearch(arguments->dbOid_exclude_list,
209209
&file->dbOid, pgCompareOid))
210+
{
211+
elog(VERBOSE, "Skip file validation due to partial restore: \"%s\"",
212+
file->rel_path);
210213
continue;
214+
}
211215

212216
/*
213217
* Currently we don't compute checksums for

0 commit comments

Comments
 (0)