Commit 51b95fb2 authored by Peter Eisentraut's avatar Peter Eisentraut

pg_amcheck: Message style improvements

parent 2c915905
......@@ -759,7 +759,7 @@ main(int argc, char *argv[])
{
if (opts.show_progress && progress_since_last_stderr)
fprintf(stderr, "\n");
pg_log_info("checking heap table \"%s\".\"%s\".\"%s\"",
pg_log_info("checking heap table \"%s.%s.%s\"",
rel->datinfo->datname, rel->nspname, rel->relname);
progress_since_last_stderr = false;
}
......@@ -775,7 +775,7 @@ main(int argc, char *argv[])
if (opts.show_progress && progress_since_last_stderr)
fprintf(stderr, "\n");
pg_log_info("checking btree index \"%s\".\"%s\".\"%s\"",
pg_log_info("checking btree index \"%s.%s.%s\"",
rel->datinfo->datname, rel->nspname, rel->relname);
progress_since_last_stderr = false;
}
......@@ -1110,7 +1110,7 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
*/
if (opts.show_progress && progress_since_last_stderr)
fprintf(stderr, "\n");
pg_log_warning("btree index \"%s\".\"%s\".\"%s\": btree checking function returned unexpected number of rows: %d",
pg_log_warning("btree index \"%s.%s.%s\": btree checking function returned unexpected number of rows: %d",
rel->datinfo->datname, rel->nspname, rel->relname, ntups);
if (opts.verbose)
pg_log_info("query was: %s", rel->sql);
......@@ -1173,7 +1173,7 @@ help(const char *progname)
printf(_(" --startblock=BLOCK begin checking table(s) at the given block number\n"));
printf(_(" --endblock=BLOCK check table(s) only up to the given block number\n"));
printf(_("\nB-tree index checking options:\n"));
printf(_(" --heapallindexed check all heap tuples are found within indexes\n"));
printf(_(" --heapallindexed check that all heap tuples are found within indexes\n"));
printf(_(" --parent-check check index parent/child relationships\n"));
printf(_(" --rootdescend search from root page to refind tuples\n"));
printf(_("\nConnection options:\n"));
......@@ -1252,7 +1252,7 @@ progress_report(uint64 relations_total, uint64 relations_checked,
* last call)
*/
fprintf(stderr,
_("%*s/%s relations (%d%%) %*s/%s pages (%d%%) %*s"),
_("%*s/%s relations (%d%%), %*s/%s pages (%d%%) %*s"),
(int) strlen(total_rel),
checked_rel, total_rel, percent_rel,
(int) strlen(total_pages),
......@@ -1263,7 +1263,7 @@ progress_report(uint64 relations_total, uint64 relations_checked,
bool truncate = (strlen(datname) > VERBOSE_DATNAME_LENGTH);
fprintf(stderr,
_("%*s/%s relations (%d%%) %*s/%s pages (%d%%), (%s%-*.*s)"),
_("%*s/%s relations (%d%%), %*s/%s pages (%d%%) (%s%-*.*s)"),
(int) strlen(total_rel),
checked_rel, total_rel, percent_rel,
(int) strlen(total_pages),
......@@ -1278,7 +1278,7 @@ progress_report(uint64 relations_total, uint64 relations_checked,
}
else
fprintf(stderr,
_("%*s/%s relations (%d%%) %*s/%s pages (%d%%)"),
_("%*s/%s relations (%d%%), %*s/%s pages (%d%%)"),
(int) strlen(total_rel),
checked_rel, total_rel, percent_rel,
(int) strlen(total_pages),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment