Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit252176b

Browse files
committed
PGPRO-2065: minor fixes for checkdb
1 parentfcf8fc5 commit252176b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎src/backup.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,6 @@ check_indexes(void *arg)
26662666

26672667
if (arguments->backup_conn==NULL)
26682668
{
2669-
PGresult*res;
2670-
char*query;
26712669

26722670
arguments->backup_conn=pgut_connect(instance_config.pghost,
26732671
instance_config.pgport,
@@ -3479,7 +3477,6 @@ get_index_list(PGresult *res_db, int db_number,
34793477
{
34803478
PGresult*res;
34813479
char*nspname=NULL;
3482-
char*snapshot=NULL;
34833480
inti;
34843481

34853482
dbname=PQgetvalue(res_db,db_number,0);

‎src/help.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static void help_add_instance(void);
2222
staticvoidhelp_del_instance(void);
2323
staticvoidhelp_archive_push(void);
2424
staticvoidhelp_archive_get(void);
25+
staticvoidhelp_checkdb(void);
2526

2627
void
2728
help_command(char*command)
@@ -52,6 +53,8 @@ help_command(char *command)
5253
help_archive_push();
5354
elseif (strcmp(command,"archive-get")==0)
5455
help_archive_get();
56+
elseif (strcmp(command,"checkdb")==0)
57+
help_checkdb();
5558
elseif (strcmp(command,"--help")==0
5659
||strcmp(command,"help")==0
5760
||strcmp(command,"-?")==0
@@ -416,11 +419,11 @@ help_checkdb(void)
416419
printf(_(" --progress show progress\n"));
417420
printf(_(" -j, --threads=NUM number of parallel threads\n"));
418421
printf(_(" --skip-block-validation skip file-level block checking\n"));
419-
printf(_(" can be used only with --amcheck option\n"));
422+
printf(_(" can be used only with'--amcheck' option\n"));
420423
printf(_(" --amcheck in addition to file-level block checking\n"));
421-
printf(_(" check btree indexes using 'amcheck' or 'amcheck_next' extension"));
424+
printf(_(" check btree indexes using 'amcheck' or 'amcheck_next' extension\n"));
422425
printf(_(" --heapallindexed also check that heap is indexed\n"));
423-
printf(_(" can be used only with --amcheck option\n"));
426+
printf(_(" can be used only with'--amcheck' option\n"));
424427

425428
printf(_("\n Logging options:\n"));
426429
printf(_(" --log-level-console=log-level-console\n"));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp