Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 252176b

Browse files
committed
PGPRO-2065: minor fixes for checkdb
1 parent fcf8fc5 commit 252176b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/backup.c

-3
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
int i;
34843481

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

src/help.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static void help_add_instance(void);
2222
static void help_del_instance(void);
2323
static void help_archive_push(void);
2424
static void help_archive_get(void);
25+
static void help_checkdb(void);
2526

2627
void
2728
help_command(char *command)
@@ -52,6 +53,8 @@ help_command(char *command)
5253
help_archive_push();
5354
else if (strcmp(command, "archive-get") == 0)
5455
help_archive_get();
56+
else if (strcmp(command, "checkdb") == 0)
57+
help_checkdb();
5558
else if (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)