Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5a73a9e3
Commit
5a73a9e3
authored
May 13, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_amcheck: Message style and formatting improvements
parent
fc695091
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
45 deletions
+45
-45
src/bin/pg_amcheck/pg_amcheck.c
src/bin/pg_amcheck/pg_amcheck.c
+45
-45
No files found.
src/bin/pg_amcheck/pg_amcheck.c
View file @
5a73a9e3
...
...
@@ -402,7 +402,7 @@ main(int argc, char *argv[])
opts
.
skip
=
"all frozen"
;
else
{
pg_log_error
(
"invalid
skip option
"
);
pg_log_error
(
"invalid
argument for option %s"
,
"--skip
"
);
exit
(
1
);
}
break
;
...
...
@@ -1114,7 +1114,7 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
rel
->
datinfo
->
datname
,
rel
->
nspname
,
rel
->
relname
,
ntups
);
if
(
opts
.
verbose
)
pg_log_info
(
"query was: %s"
,
rel
->
sql
);
pg_log_warning
(
"
a
re %s's and amcheck's versions compatible?"
,
pg_log_warning
(
"
A
re %s's and amcheck's versions compatible?"
,
progname
);
progress_since_last_stderr
=
false
;
}
...
...
@@ -1148,10 +1148,10 @@ verify_btree_slot_handler(PGresult *res, PGconn *conn, void *context)
static
void
help
(
const
char
*
progname
)
{
printf
(
_
(
"%s
uses amcheck module to check
objects in a PostgreSQL database for corruption.
\n\n
"
),
progname
);
printf
(
_
(
"%s
checks
objects in a PostgreSQL database for corruption.
\n\n
"
),
progname
);
printf
(
_
(
"Usage:
\n
"
));
printf
(
_
(
" %s [OPTION]... [DBNAME]
\n
"
),
progname
);
printf
(
_
(
"
\n
Target
O
ptions:
\n
"
));
printf
(
_
(
"
\n
Target
o
ptions:
\n
"
));
printf
(
_
(
" -a, --all check all databases
\n
"
));
printf
(
_
(
" -d, --database=PATTERN check matching database(s)
\n
"
));
printf
(
_
(
" -D, --exclude-database=PATTERN do NOT check matching database(s)
\n
"
));
...
...
@@ -1164,15 +1164,15 @@ help(const char *progname)
printf
(
_
(
" -t, --table=PATTERN check matching table(s)
\n
"
));
printf
(
_
(
" -T, --exclude-table=PATTERN do NOT check matching table(s)
\n
"
));
printf
(
_
(
" --no-dependent-indexes do NOT expand list of relations to include indexes
\n
"
));
printf
(
_
(
" --no-dependent-toast
do NOT expand list of relations to include toast
\n
"
));
printf
(
_
(
" --no-dependent-toast
do NOT expand list of relations to include TOAST tables
\n
"
));
printf
(
_
(
" --no-strict-names do NOT require patterns to match objects
\n
"
));
printf
(
_
(
"
\n
Table
Checking O
ptions:
\n
"
));
printf
(
_
(
" --exclude-toast-pointers
do NOT follow relation toast
pointers
\n
"
));
printf
(
_
(
"
\n
Table
checking o
ptions:
\n
"
));
printf
(
_
(
" --exclude-toast-pointers
do NOT follow relation TOAST
pointers
\n
"
));
printf
(
_
(
" --on-error-stop stop checking at end of first corrupt page
\n
"
));
printf
(
_
(
" --skip=OPTION do NOT check
\"
all-frozen
\"
or
\"
all-visible
\"
blocks
\n
"
));
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
(
_
(
"
\n
B
tree Index Checking O
ptions:
\n
"
));
printf
(
_
(
"
\n
B
-tree index checking o
ptions:
\n
"
));
printf
(
_
(
" --heapallindexed check 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
"
));
...
...
@@ -1183,7 +1183,7 @@ help(const char *progname)
printf
(
_
(
" -w, --no-password never prompt for password
\n
"
));
printf
(
_
(
" -W, --password force password prompt
\n
"
));
printf
(
_
(
" --maintenance-db=DBNAME alternate maintenance database
\n
"
));
printf
(
_
(
"
\n
Other
O
ptions:
\n
"
));
printf
(
_
(
"
\n
Other
o
ptions:
\n
"
));
printf
(
_
(
" -e, --echo show the commands being sent to the server
\n
"
));
printf
(
_
(
" -j, --jobs=NUM use this many concurrent connections to the server
\n
"
));
printf
(
_
(
" -q, --quiet don't write any messages
\n
"
));
...
...
@@ -1547,7 +1547,7 @@ compile_database_list(PGconn *conn, SimplePtrList *databases,
/* This database is included. Add to list */
if
(
opts
.
verbose
)
pg_log_info
(
"including database
:
\"
%s
\"
"
,
initial_dbname
);
pg_log_info
(
"including database
\"
%s
\"
"
,
initial_dbname
);
dat
->
datname
=
pstrdup
(
initial_dbname
);
simple_ptr_list_append
(
databases
,
dat
);
...
...
@@ -1689,7 +1689,7 @@ compile_database_list(PGconn *conn, SimplePtrList *databases,
/* This database is included. Add to list */
if
(
opts
.
verbose
)
pg_log_info
(
"including database
:
\"
%s
\"
"
,
datname
);
pg_log_info
(
"including database
\"
%s
\"
"
,
datname
);
dat
=
(
DatabaseInfo
*
)
pg_malloc0
(
sizeof
(
DatabaseInfo
));
dat
->
datname
=
pstrdup
(
datname
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment