Quoting of *_command arguments

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-documentation <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Quoting of *_command arguments
Date: 2025-11-11 19:31:21
Message-ID: aROPCQCfvKp9Htk4@momjian.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Do not let urgent matters crowd out time for investment in the future.

Attachment Content-Type Size
command.diff text/x-diff 4.2 KB

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2025-11-12 13:45:16 Re: Quoting of *_command arguments
Previous Message Peter Eisentraut 2025-11-11 13:12:31 Re: Use uppercase keywords in foreign key tutorial