Re: unrecognized option '--help

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: unrecognized option '--help
Дата
Msg-id CAB7nPqS6WaQHdiJR+E85couyxjkJsAATK13765b9Wso5fm44Xw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: unrecognized option '--help  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Fri, May 22, 2015 at 11:24 AM, Tom Lane wrote:
> Meh.  I don't particularly object to including --help in the switch set
> recognized in getopt_long ... but I doubt that that will actually fix
> Alvaro's scenario.
>
> Note that we should not rip out the existing code, because part of the
> reason for that is that it acts before any of the other stuff that runs
> before getopt parsing starts, eg the postmaster's refusal to run if you're
> root.

Well, this is true for postmaster and pg_ctl. By looking at
pg_resetxlog, pg_rewind and initdb the root check occurs after option
parsing.
--
Michael

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: unrecognized option '--help
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: unrecognized option '--help