Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)
Дата
Msg-id CAB7nPqTb1rKAM4hqvid3SRgJqpMavEO+GnCQ5Z9+=e7y=pBaJQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)  (Andres Freund <andres@anarazel.de>)
Ответы Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)  (Ryan Murphy <ryanfmurphy@gmail.com>)
Список pgsql-hackers
On Wed, Aug 17, 2016 at 8:05 AM, Andres Freund <andres@anarazel.de> wrote:
> ISTM that the correct fix would be to actually introduce something like
> quote_path_for_shell() which either adds proper quotes, or fails if
> that'd be hard (e.g. if the path contains quotes, and we're on
> windows).

You are looking for appendShellString in fe_utils/string_utils.c.
-- 
Michael



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Slowness of extended protocol
Следующее
От: Robert Haas
Дата:
Сообщение: Re: LWLocks in DSM memory