diff --git a/src/help.c b/src/help.c index 324995d6..cccef04b 100644 --- a/src/help.c +++ b/src/help.c @@ -462,8 +462,8 @@ help_validate(void) printf(_(" the named restore point to which recovery will proceed\n")); printf(_(" --skip-block-validation set to validate only file-level checksum\n")); - printf(_(" --db-include dbname restore only specified databases\n")); - printf(_(" --db-exclude dbname do not restore specified databases\n")); + printf(_(" --db-include dbname validate only files of specified databases\n")); + printf(_(" --db-exclude dbname do not validate files of specified databases\n")); printf(_("\n Logging options:\n")); printf(_(" --log-level-console=log-level-console\n")); diff --git a/src/validate.c b/src/validate.c index 415b258e..bcd3c35f 100644 --- a/src/validate.c +++ b/src/validate.c @@ -207,7 +207,11 @@ pgBackupValidateFiles(void *arg) if (arguments->dbOid_exclude_list && file->external_dir_num == 0 && parray_bsearch(arguments->dbOid_exclude_list, &file->dbOid, pgCompareOid)) + { + elog(VERBOSE, "Skip file validation due to partial restore: \"%s\"", + file->rel_path); continue; + } /* * Currently we don't compute checksums for