Fix initdb for path with whitespace and at char

Поиск
Список
Период
Сортировка
От Nikhil Deshpande
Тема Fix initdb for path with whitespace and at char
Дата
Msg-id CAH_aGJj4YbcL7V9c_iX_YZ4WJuxgydHNvR5JgwU0K+=abeiNeg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix initdb for path with whitespace and at char  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
Hi,

On win32, initdb fails if it's path includes a space and at ('@') character. E.g.

C:\>"C:\Program Files\user@company\Postgres\9.3\bin\initdb.exe" -D "c:\baz"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Here's a patch that fixes initdb by enclosing the command string in
extra double quotes being passed to popen() (similar to system() call).

Thanks,
 Nikhil 
Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump --pretty-print-views
Следующее
От: Hello World
Дата:
Сообщение: libpq: How to get the error code after a failed PGconn connection