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 1vmuhP-0006pP-28 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 14:14: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 1vmuhN-00E84x-2G for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 14:14:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vmuhN-00E84p-1L for pgsql-hackers@lists.postgresql.org; Mon, 02 Feb 2026 14:14:42 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vmuhL-00000000gXd-3M5c for pgsql-hackers@lists.postgresql.org; Mon, 02 Feb 2026 14:14:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 612EESKG500512; Mon, 2 Feb 2026 09:14:28 -0500 From: Tom Lane To: =?utf-8?Q?=C3=81lvaro?= Herrera cc: Andrew Dunstan , Mahendra Singh Thalor , Nathan Bossart , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote In-reply-to: <202602021048.m5lsx277xfuw@alvherre.pgsql> References: <202602021048.m5lsx277xfuw@alvherre.pgsql> Comments: In-reply-to =?utf-8?Q?=C3=81lvaro?= Herrera message dated "Mon, 02 Feb 2026 11:54:34 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <500510.1770041668.1@sss.pgh.pa.us> Date: Mon, 02 Feb 2026 09:14:28 -0500 Message-ID: <500511.1770041668@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?utf-8?Q?=C3=81lvaro?= Herrera writes: > This is not an objection to this patch, but I don't see why we should > allow newlines in tablespace names if we're going to restrict them in > names of roles and databases. Is it only because pg_dumpall happens not > to dump a comment with the tablespace name on it, like we do for dbs and > roles? Sounds unprincipled. > I think keeping these things under the same rules makes the most sense. Yeah, I was thinking the same. regards, tom lane