mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Message style improvements
This commit is contained in:
@ -621,8 +621,8 @@ main(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
if ((vmaj == 1 && vmin < 4) || vmaj == 0)
|
if ((vmaj == 1 && vmin < 4) || vmaj == 0)
|
||||||
{
|
{
|
||||||
pg_log_warning("--checkunique option is not supported by amcheck "
|
pg_log_warning("option %s is not supported by amcheck version %s",
|
||||||
"version \"%s\"", amcheck_version);
|
"--checkunique", amcheck_version);
|
||||||
dat->is_checkunique = false;
|
dat->is_checkunique = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -564,7 +564,7 @@ $node->command_checks_all(
|
|||||||
0,
|
0,
|
||||||
[$no_output_re],
|
[$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');
|
'pg_amcheck smoke test --checkunique');
|
||||||
done_testing();
|
done_testing();
|
||||||
|
@ -337,7 +337,7 @@ main(int argc, char *argv[])
|
|||||||
* won't have the WAL ranges for the resulting manifest.
|
* won't have the WAL ranges for the resulting manifest.
|
||||||
*/
|
*/
|
||||||
if (manifests[n_prior_backups] == NULL)
|
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
|
else
|
||||||
mwriter = NULL;
|
mwriter = NULL;
|
||||||
@ -655,7 +655,7 @@ check_control_files(int n_backups, char **backup_dirs)
|
|||||||
if (data_checksum_mismatch)
|
if (data_checksum_mismatch)
|
||||||
{
|
{
|
||||||
pg_log_warning("only some backups have checksums enabled");
|
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;
|
return system_identifier;
|
||||||
@ -766,9 +766,9 @@ help(const char *progname)
|
|||||||
printf(_(" -o, --output=DIRECTORY output directory\n"));
|
printf(_(" -o, --output=DIRECTORY output directory\n"));
|
||||||
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"
|
printf(_(" -T, --tablespace-mapping=OLDDIR=NEWDIR\n"
|
||||||
" relocate tablespace in OLDDIR to 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 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"
|
printf(_(" --manifest-checksums=SHA{224,256,384,512}|CRC32C|NONE\n"
|
||||||
" use algorithm for manifest checksums\n"));
|
" use algorithm for manifest checksums\n"));
|
||||||
printf(_(" --no-manifest suppress generation of backup manifest\n"));
|
printf(_(" --no-manifest suppress generation of backup manifest\n"));
|
||||||
@ -1070,7 +1070,7 @@ process_directory_recursively(Oid tsoid,
|
|||||||
*/
|
*/
|
||||||
bmpath = psprintf("%s/%s", input_directory,
|
bmpath = psprintf("%s/%s", input_directory,
|
||||||
"backup_manifest");
|
"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);
|
bmpath, manifest_path);
|
||||||
pfree(bmpath);
|
pfree(bmpath);
|
||||||
}
|
}
|
||||||
|
@ -449,7 +449,7 @@ make_incremental_rfile(char *filename)
|
|||||||
/* Read and validate magic number. */
|
/* Read and validate magic number. */
|
||||||
read_bytes(rf, &magic, sizeof(magic));
|
read_bytes(rf, &magic, sizeof(magic));
|
||||||
if (magic != INCREMENTAL_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);
|
filename, magic, INCREMENTAL_MAGIC);
|
||||||
|
|
||||||
/* Read block count. */
|
/* Read block count. */
|
||||||
|
@ -658,7 +658,7 @@ help(void)
|
|||||||
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
|
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
|
||||||
printf(_(" --exclude-database=PATTERN exclude databases whose name matches PATTERN\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(_(" --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(_(" --if-exists use IF EXISTS when dropping objects\n"));
|
||||||
printf(_(" --inserts dump data as INSERT commands, rather than COPY\n"));
|
printf(_(" --inserts dump data as INSERT commands, rather than COPY\n"));
|
||||||
printf(_(" --load-via-partition-root load partitions via the root table\n"));
|
printf(_(" --load-via-partition-root load partitions via the root table\n"));
|
||||||
|
@ -1104,7 +1104,7 @@ getRestoreCommand(const char *argv0)
|
|||||||
|
|
||||||
restore_command = pipe_read_line(postgres_cmd->data);
|
restore_command = pipe_read_line(postgres_cmd->data);
|
||||||
if (restore_command == NULL)
|
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);
|
(void) pg_strip_crlf(restore_command);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user