Re: BUG #7514: postgres -k no longer works with spaces in the path

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7514: postgres -k no longer works with spaces in the path
Дата
Msg-id 16738.1346769101@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #7514: postgres -k no longer works with spaces in the path  (murrayc@murrayc.com)
Ответы Re: BUG #7514: postgres -k no longer works with spaces in the path  (Murray Cumming <murrayc@murrayc.com>)
Список pgsql-bugs
murrayc@murrayc.com writes:
> At some point, probably in 9.1.5, the -k option to Postgres ("Unix-domain
> socket location" in --help), stopped accepting paths that contain spaces.

> For instance,
> -k '/tmp/testglom2FPDKW/path with spaces/some_postgres_data'

> It now fails with this error:
> FATAL:  invalid list syntax for "unix_socket_directories"

Ah, you're using the latest Fedora packaging of 9.1.x, which includes a
back-ported version of the unix_socket_directories change that's in
HEAD.  -k now effectively takes a list of directory names, not just
one, and it's pickier about whitespace.

IIRC, you can make it work if you put double quotes around the
space-containing name, so it'd look like this:

    -k '"/blah blah blah"'


            regards, tom lane

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

Предыдущее
От: TAKATSUKA Haruka
Дата:
Сообщение: Re: BUG #7518: "FORMAT" in the "COPY" command
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #6528: pglesslog still referenced in docs, but no 9.1 support