Re: Quoting of *_command arguments

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Quoting of *_command arguments
Дата
Msg-id 97c4fe46-0c52-4fe8-90d3-10da182e587c@eisentraut.org
обсуждение исходный текст
Ответ на Quoting of *_command arguments  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Quoting of *_command arguments
Список pgsql-docs
On 11.11.25 20:31, Bruce Momjian wrote:
> We inconsistently double-quote the "%f" and "%p" arguments of
> "archive_command" and "restore_command".  Paths with spaces or special
> characters, especially directory names in these cases, would need
> double-quotes.
> 
> This patch adds double-quotes to all instances.  I can also go the other
> way and remove them all, but we should be consistent.

I think %f doesn't need to be quoted because it will only contain 
certain characters, but if we tried to clarify that it would probably be 
too confusing.  It makes sense to nudge people that some quoting is prudent.

Your patch looks good to me.




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