@@ -56,7 +56,6 @@ typedef struct AmcheckOptions
56
56
bool dbpattern ;
57
57
bool alldb ;
58
58
bool echo ;
59
- bool quiet ;
60
59
bool verbose ;
61
60
bool strict_names ;
62
61
bool show_progress ;
@@ -112,7 +111,6 @@ static AmcheckOptions opts = {
112
111
.dbpattern = false,
113
112
.alldb = false,
114
113
.echo = false,
115
- .quiet = false,
116
114
.verbose = false,
117
115
.strict_names = true,
118
116
.show_progress = false,
@@ -250,7 +248,6 @@ main(int argc, char *argv[])
250
248
{"exclude-index" , required_argument , NULL , 'I' },
251
249
{"jobs" , required_argument , NULL , 'j' },
252
250
{"progress" , no_argument , NULL , 'P' },
253
- {"quiet" , no_argument , NULL , 'q' },
254
251
{"relation" , required_argument , NULL , 'r' },
255
252
{"exclude-relation" , required_argument , NULL , 'R' },
256
253
{"schema" , required_argument , NULL , 's' },
@@ -294,7 +291,7 @@ main(int argc, char *argv[])
294
291
handle_help_version_opts (argc , argv , progname , help );
295
292
296
293
/* process command-line options */
297
- while ((c = getopt_long (argc , argv , "ad:D:eh:Hi:I:j:p:Pqr :R:s:S:t:T:U:wWv" ,
294
+ while ((c = getopt_long (argc , argv , "ad:D:eh:Hi:I:j:p:Pr :R:s:S:t:T:U:wWv" ,
298
295
long_options , & optindex )) != -1 )
299
296
{
300
297
char * endptr ;
@@ -338,9 +335,6 @@ main(int argc, char *argv[])
338
335
case 'P' :
339
336
opts .show_progress = true;
340
337
break ;
341
- case 'q' :
342
- opts .quiet = true;
343
- break ;
344
338
case 'r' :
345
339
opts .allrel = false;
346
340
append_relation_pattern (& opts .include , optarg , encoding );
@@ -637,21 +631,18 @@ main(int argc, char *argv[])
637
631
{
638
632
failed = opts .strict_names ;
639
633
640
- if (!opts .quiet || failed )
641
- {
642
- if (pat -> heap_only )
643
- log_no_match ("no heap tables to check matching \"%s\"" ,
644
- pat -> pattern );
645
- else if (pat -> btree_only )
646
- log_no_match ("no btree indexes to check matching \"%s\"" ,
647
- pat -> pattern );
648
- else if (pat -> rel_regex == NULL )
649
- log_no_match ("no relations to check in schemas matching \"%s\"" ,
650
- pat -> pattern );
651
- else
652
- log_no_match ("no relations to check matching \"%s\"" ,
653
- pat -> pattern );
654
- }
634
+ if (pat -> heap_only )
635
+ log_no_match ("no heap tables to check matching \"%s\"" ,
636
+ pat -> pattern );
637
+ else if (pat -> btree_only )
638
+ log_no_match ("no btree indexes to check matching \"%s\"" ,
639
+ pat -> pattern );
640
+ else if (pat -> rel_regex == NULL )
641
+ log_no_match ("no relations to check in schemas matching \"%s\"" ,
642
+ pat -> pattern );
643
+ else
644
+ log_no_match ("no relations to check matching \"%s\"" ,
645
+ pat -> pattern );
655
646
}
656
647
}
657
648
@@ -749,8 +740,6 @@ main(int argc, char *argv[])
749
740
750
741
if (opts .verbose )
751
742
PQsetErrorVerbosity (free_slot -> connection , PQERRORS_VERBOSE );
752
- else if (opts .quiet )
753
- PQsetErrorVerbosity (free_slot -> connection , PQERRORS_TERSE );
754
743
755
744
/*
756
745
* Execute the appropriate amcheck command for this relation using our
@@ -1192,7 +1181,6 @@ help(const char *progname)
1192
1181
printf (_ ("\nOther options:\n" ));
1193
1182
printf (_ (" -e, --echo show the commands being sent to the server\n" ));
1194
1183
printf (_ (" -j, --jobs=NUM use this many concurrent connections to the server\n" ));
1195
- printf (_ (" -q, --quiet don't write any messages\n" ));
1196
1184
printf (_ (" -P, --progress show progress information\n" ));
1197
1185
printf (_ (" -v, --verbose write a lot of output\n" ));
1198
1186
printf (_ (" -V, --version output version information, then exit\n" ));
0 commit comments