src/port/getopt_long.c lossy with arguments having no option characters

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема src/port/getopt_long.c lossy with arguments having no option characters
Дата
Msg-id CAB7nPqQ45JbD1ZBvbD7gqQK4diGZXmGw56zp7R_DvEKO8EdMbQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: src/port/getopt_long.c lossy with arguments having no option characters  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi all,

The implementation of getopt_long in src/port has some limitations,
for example such commands do not work but they should:
$ createdb foobar3 -E win1252
createdb: too many command-line arguments (first is "win1252")
Try "createdb --help" for more information.
$ initdb pgdata --noclean
initdb: too many command-line arguments (first is "--noclean")
Try "initdb --help" for more information.

And those ones work:
createdb -E win1252 foobar3
initdb --noclean pgdata

I bumped into this problem when running the TAP tests on Windows, but
I guess that it easy to reproduce it with any builds of Postgres on
Windows as getopt_long is used unconditionally, on any version, for
all commands. Or on any platform that has not getopt_long, if any
exists.
Regards,
--
Michael

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
Следующее
От: Ilya Bazylchuk
Дата:
Сообщение: Postgresql 9.4.1 stuck all queries when making multi updates