Small patch: initdb: "'" for QUOTE_PATH (non-windows)

Поиск
Список
Период
Сортировка
От Ryan Murphy
Тема Small patch: initdb: "'" for QUOTE_PATH (non-windows)
Дата
Msg-id CAHeEsBe217dSe9QB2+Q8Pduq_20tPacRRiW6UeLy6G1OgDyDsw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hello Postgres Hackers!

I sent this already a few hours ago but it got blocked because I had not yet joined the mailing list.  Trying again, sorry for any redundancy or confusion!

This is to fix an issue that came up for me when running initdb.

At the end of a successful initdb it says:

    Success. You can now start the database server using:
        pg_ctl -D /some/path/to/data -l logfile start

but this command did not work for me because my data directory
contained a space.  The src/bin/initdb/initdb.c source code
did already have a QUOTE_PATH constant, but it was the empty
string for non-windows cases.

Therefore, added quotes via existing QUOTE_PATH constant:

    pg_ctl -D '/some/path/to/data' -l logfile start

Best,
Ryan



Вложения

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: COPY FREEZE and PD_ALL_VISIBLE
Следующее
От: Tom Lane
Дата:
Сообщение: Why --backup-and-modify-in-place in perltidy config?