@ -56,7 +56,6 @@ typedef struct AmcheckOptions
bool dbpattern ;
bool alldb ;
bool echo ;
bool quiet ;
bool verbose ;
bool strict_names ;
bool show_progress ;
@ -112,7 +111,6 @@ static AmcheckOptions opts = {
. dbpattern = false ,
. alldb = false ,
. echo = false ,
. quiet = false ,
. verbose = false ,
. strict_names = true ,
. show_progress = false ,
@ -250,7 +248,6 @@ main(int argc, char *argv[])
{ " exclude-index " , required_argument , NULL , ' I ' } ,
{ " jobs " , required_argument , NULL , ' j ' } ,
{ " progress " , no_argument , NULL , ' P ' } ,
{ " quiet " , no_argument , NULL , ' q ' } ,
{ " relation " , required_argument , NULL , ' r ' } ,
{ " exclude-relation " , required_argument , NULL , ' R ' } ,
{ " schema " , required_argument , NULL , ' s ' } ,
@ -294,7 +291,7 @@ main(int argc, char *argv[])
handle_help_version_opts ( argc , argv , progname , help ) ;
/* process command-line options */
while ( ( c = getopt_long ( argc , argv , " ad:D:eh:Hi:I:j:p:Pq r:R:s:S:t:T:U:wWv " ,
while ( ( c = getopt_long ( argc , argv , " ad:D:eh:Hi:I:j:p:Pr:R:s:S:t:T:U:wWv " ,
long_options , & optindex ) ) ! = - 1 )
{
char * endptr ;
@ -338,9 +335,6 @@ main(int argc, char *argv[])
case ' P ' :
opts . show_progress = true ;
break ;
case ' q ' :
opts . quiet = true ;
break ;
case ' r ' :
opts . allrel = false ;
append_relation_pattern ( & opts . include , optarg , encoding ) ;
@ -637,8 +631,6 @@ main(int argc, char *argv[])
{
failed = opts . strict_names ;
if ( ! opts . quiet | | failed )
{
if ( pat - > heap_only )
log_no_match ( " no heap tables to check matching \" %s \" " ,
pat - > pattern ) ;
@ -653,7 +645,6 @@ main(int argc, char *argv[])
pat - > pattern ) ;
}
}
}
if ( failed )
{
@ -749,8 +740,6 @@ main(int argc, char *argv[])
if ( opts . verbose )
PQsetErrorVerbosity ( free_slot - > connection , PQERRORS_VERBOSE ) ;
else if ( opts . quiet )
PQsetErrorVerbosity ( free_slot - > connection , PQERRORS_TERSE ) ;
/*
* Execute the appropriate amcheck command for this relation using our
@ -1192,7 +1181,6 @@ help(const char *progname)
printf ( _ ( " \n Other options: \n " ) ) ;
printf ( _ ( " -e, --echo show the commands being sent to the server \n " ) ) ;
printf ( _ ( " -j, --jobs=NUM use this many concurrent connections to the server \n " ) ) ;
printf ( _ ( " -q, --quiet don't write any messages \n " ) ) ;
printf ( _ ( " -P, --progress show progress information \n " ) ) ;
printf ( _ ( " -v, --verbose write a lot of output \n " ) ) ;
printf ( _ ( " -V, --version output version information, then exit \n " ) ) ;