Re: Quoting of *_command arguments

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-documentation <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Quoting of *_command arguments
Date: 2025-11-12 13:45:16
Message-ID: 97c4fe46-0c52-4fe8-90d3-10da182e587c@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2025-11-12 13:48:39 Re: Quoting of *_command arguments
Previous Message Bruce Momjian 2025-11-11 19:31:21 Quoting of *_command arguments