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