pg_walsummary, Character-not-present-in-option - Mailing list pgsql-hackers

From btsugieyuusuke
Subject pg_walsummary, Character-not-present-in-option
Date
Msg-id 68e72a2a70f4d84c1c7847b13bcdaef8@oss.nttdata.com
Whole thread Raw
List pgsql-hackers
Hi hackers,
I found probably something to fix in pg_walsummary.

pg_walsummary specifies “f:iqw:” as the third argument of getopt_long().

> /* process command-line options */
> while ((c = getopt_long(argc, argv, "f:iqw:",
>                 long_options, &optindex)) != -1)

However, only i and q are valid options.

>     switch (c)
>     {
>         case 'i':
>             break;
>         case 'q':
>             opt.quiet = true;
>             break;
>         default:
>             /* getopt_long already emitted a complaint */
>             pg_log_error_hint("Try \"%s --help\" for more information.", 
> progname);
>             exit(1);
>     }

Therefore, shouldn't “f:” and “w:” be removed?

Best regards,
Yusuke Sugie



pgsql-hackers by date:

Previous
From: Yugo NAGATA
Date:
Subject: Re: [Bug Fix]standby may crash when switching-over in certain special cases
Next
From: shveta malik
Date:
Subject: Re: Conflict Detection and Resolution