Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> There is indeed a bug in pg_ctl here. We are reporting an error which
> getopt_long already reported; and furthermore, optarg is not set by that
> function in case of error. This is the fix:
Good catch, but I'd suggest not just removing the write_stderr but
adding a comment in its place:
/* getopt_long already issued a suitable error message */
Please commit fix in all relevant branches.
regards, tom lane