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
51b95fb2
Commit
51b95fb2
authored
Aug 07, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_amcheck: Message style improvements
parent
2c915905
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/bin/pg_amcheck/pg_amcheck.c
src/bin/pg_amcheck/pg_amcheck.c
+7
-7
No files found.
src/bin/pg_amcheck/pg_amcheck.c
View file @
51b95fb2
...
...
@@ -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
(
_
(
"
\n
B-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
(
_
(
"
\n
Connection 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
),
...
...
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