Re: windows psql connection error

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: windows psql connection error
Дата
Msg-id YLl6H9lI2vBLuMPw@paquier.xyz
обсуждение исходный текст
Ответ на Re: windows psql connection error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Thu, Jun 03, 2021 at 10:01:54AM -0400, Tom Lane wrote:
> long Allen <zl19881003@gmail.com> writes:
> > When I execute commands "psql postgres -p 5433" in Windows, the system
> > reported an error “"extra command-line argument **** ignored“.
>
> We do not document nor support writing switches (i.e. "-p 5433") after
> non-switch arguments.  Some versions of getopt_long make that magically
> work anyway, but others do not.

Just to bring in a bit more context..  Any code compiled with MSVC on
Windows would use the fallback implementation of getopt_long() in
src/port/getopt_long.c, which only supports the case where the extra
argument is at the end of the command.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: windows psql connection error
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17047: 502 ERROR The request could not be satisfied