*/
if ((vmaj == 1 && vmin < 4) || vmaj == 0)
{
- pg_log_warning("--checkunique option is not supported by amcheck "
- "version \"%s\"", amcheck_version);
+ pg_log_warning("option %s is not supported by amcheck version %s",
+ "--checkunique", amcheck_version);
dat->is_checkunique = false;
}
else
0,
[$no_output_re],
[
- qr/pg_amcheck: warning: --checkunique option is not supported by amcheck version "1.3"/
+ qr/pg_amcheck: warning: option --checkunique is not supported by amcheck version 1.3/
],
'pg_amcheck smoke test --checkunique');
done_testing();
* won't have the WAL ranges for the resulting manifest.
*/
if (manifests[n_prior_backups] == NULL)
- pg_fatal("can't generate a manifest because no manifest is available for the final input backup");
+ pg_fatal("cannot generate a manifest because no manifest is available for the final input backup");
}
else
mwriter = NULL;
if (data_checksum_mismatch)
{
pg_log_warning("only some backups have checksums enabled");
- pg_log_warning_hint("disable, and optionally reenable, checksums on the output directory to avoid failures");
+ pg_log_warning_hint("Disable, and optionally reenable, checksums on the output directory to avoid failures.");
}
return system_identifier;
printf(_(" -o, --output=DIRECTORY output directory\n"));
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"
" relocate tablespace in OLDDIR to NEWDIR\n"));
- printf(_(" --clone clone (reflink) instead of copying files\n"));
+ printf(_(" --clone clone (reflink) files instead of copying\n"));
printf(_(" --copy copy files (default)\n"));
- printf(_(" --copy-file-range copy using copy_file_range() syscall\n"));
+ printf(_(" --copy-file-range copy using copy_file_range() system call\n"));
printf(_(" --manifest-checksums=SHA{224,256,384,512}|CRC32C|NONE\n"
" use algorithm for manifest checksums\n"));
printf(_(" --no-manifest suppress generation of backup manifest\n"));
*/
bmpath = psprintf("%s/%s", input_directory,
"backup_manifest");
- pg_log_warning("\"%s\" contains no entry for \"%s\"",
+ pg_log_warning("manifest file \"%s\" contains no entry for file \"%s\"",
bmpath, manifest_path);
pfree(bmpath);
}
/* Read and validate magic number. */
read_bytes(rf, &magic, sizeof(magic));
if (magic != INCREMENTAL_MAGIC)
- pg_fatal("file \"%s\" has bad incremental magic number (0x%x not 0x%x)",
+ pg_fatal("file \"%s\" has bad incremental magic number (0x%x, expected 0x%x)",
filename, magic, INCREMENTAL_MAGIC);
/* Read block count. */
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
printf(_(" --exclude-database=PATTERN exclude databases whose name matches PATTERN\n"));
printf(_(" --extra-float-digits=NUM override default setting for extra_float_digits\n"));
- printf(_(" --filter=FILENAME exclude databases specified in FILENAME\n"));
+ printf(_(" --filter=FILENAME exclude databases based on expressions in FILENAME\n"));
printf(_(" --if-exists use IF EXISTS when dropping objects\n"));
printf(_(" --inserts dump data as INSERT commands, rather than COPY\n"));
printf(_(" --load-via-partition-root load partitions via the root table\n"));
restore_command = pipe_read_line(postgres_cmd->data);
if (restore_command == NULL)
- pg_fatal("unable to read restore_command from target cluster");
+ pg_fatal("could not read restore_command from target cluster");
(void) pg_strip_crlf(restore_command);