Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJBDI-00DVpO-1I for pgsql-docs@arkaria.postgresql.org; Wed, 12 Nov 2025 13:48:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJBDG-00Bihg-0g for pgsql-docs@arkaria.postgresql.org; Wed, 12 Nov 2025 13:48:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJBDF-00BihY-2y for pgsql-docs@lists.postgresql.org; Wed, 12 Nov 2025 13:48:41 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJBDE-006jkE-0X for pgsql-docs@lists.postgresql.org; Wed, 12 Nov 2025 13:48:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=o9deYUPypYX6a6zIg1n7x3uasAXKu14N5gb+OCPdBbg=; b=pqUA3 viGgwnH14s1cQvTpRqJj40vQIy6bfU1K5sNPDRX4pUpRltPhe5TWIZ8EOQXIJ/gigFPMm5jofJwYK GIVsj0zF5WmSUcp7L6HJj+CF5LZE2hOJjNFw+Xh+IZzc9ky3iMuOfXJbejGPlI5Fj5N79PVVuQLfe iR4mI9HyEYAdOw6t0b2UEgwmksn5Y6Cf7EaRFidlCr5eVpQ0xodrwpLMRLk8e5bKsZ+Cl6qLRhb2p agSx5oxK9SZCIxyx+G/EP7fr0704AsVhISRTNAnjpYW0Yns6CSpW6zYmnM6/laxk084LvdjznjPQ+ u+UqglkeKoaUzwsKOY5uLKrX9dvZA==; Received: from bruce by momjian.us with local (Exim 4.98.2) (envelope-from ) id 1vJBDD-000000012VM-0rpt; Wed, 12 Nov 2025 08:48:39 -0500 Date: Wed, 12 Nov 2025 08:48:39 -0500 From: Bruce Momjian To: Peter Eisentraut Cc: PostgreSQL-documentation Subject: Re: Quoting of *_command arguments Message-ID: References: <97c4fe46-0c52-4fe8-90d3-10da182e587c@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97c4fe46-0c52-4fe8-90d3-10da182e587c@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 12, 2025 at 02:45:16PM +0100, Peter Eisentraut wrote: > 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. Yeah, I did consider your point but you are right --- it is too complex to quote one and not the other and expect people to understand why. > Your patch looks good to me. Thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.