Re: BUG #2495: -i start up option blows pg_ctl program.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Ermest <whitelaw(at)netc(dot)pt>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2495: -i start up option blows pg_ctl program.
Date: 2006-06-24 03:32:05
Message-ID: 1360.1151119925@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heinz-Peter Heidinger 2006-06-24 07:44:39 BUG #2496: Troubles with fixed-point types (NUMERIC, DECIMAL,...)
Previous Message Alvaro Herrera 2006-06-24 02:23:06 Re: BUG #2495: -i start up option blows pg_ctl program.