Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)
От | Michael Paquier |
---|---|
Тема | Re: Patch: initdb: "'" for QUOTE_PATH (non-windows) |
Дата | |
Msg-id | CAB7nPqTt8HvTuqWN_k0FEoeXu3x8_yh3BkPtjXLm8-uah42=DA@mail.gmail.com обсуждение исходный текст |
Ответ на | Patch: initdb: "'" for QUOTE_PATH (non-windows) (Ryan Murphy <ryanfmurphy@gmail.com>) |
Ответы |
Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)
|
Список | pgsql-hackers |
On Mon, Aug 15, 2016 at 12:12 AM, Ryan Murphy <ryanfmurphy@gmail.com> wrote: > 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 You may want to register this patch to the next commit fest: https://commitfest.postgresql.org/10/ -- Michael
В списке pgsql-hackers по дате отправления: