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.94.2) (envelope-from ) id 1ts3mD-00EW5w-Qx for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 17:52:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ts3mC-003krj-A7 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 17:52:24 +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.94.2) (envelope-from ) id 1ts3mB-003kq1-OA for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 17:52:24 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ts3m8-002GqD-2F for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 17:52:21 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id C2CF011400F7; Tue, 11 Mar 2025 13:52:19 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Tue, 11 Mar 2025 13:52:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1741715539; x=1741801939; bh=pakvoUpAl7fd9hQvRWwg+io5CjXHfXVqH58L6xGwXvI=; b= EbtWk/FUnd/+7Eg173K9BJgtzUvMWbq32ILp9k02+YAT+k4VzXJmwHqK915MmxZM JLPsQnJrOuHMyuO0o4SVtDfKbfHgdrBOwWMB63/LQ/wWzBBkt1SCDgOe3GqOiH+U crrPn61rVLU0I3ggQsEJNj6N5bbwH8Ile8F7BiK8g2ozApmHE/Bl6Nou0V+SSPO+ wGzzzEOascaHrIU66V7GhJKFpLa/6mNhb8+tM9juUoYSTJTP0qpSFNkp9NgvnyJj z+v/nc5G4BKHp35f6drqdIwyPgp2XxCUQ0gx/eOG23OAoLHX6RmEs9/dFOywn0tq QnHIj+4Bx7/eeIdn4N1kJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741715539; x= 1741801939; bh=pakvoUpAl7fd9hQvRWwg+io5CjXHfXVqH58L6xGwXvI=; b=u WHeHJhvcERGLytuOB70CA3VHNAKyWsd6YOu8OBjHMroO6Mj3W81MYOChxApB45ug fY/bYDO1Epfwbr55gQszBq6q8D5fdUGtiKOeh7j6YuOnNnyUd4NEYdU5zJTnBGbV PWXJct7LqCvxA+8YYhOfrp1xAA4NEECS58oVqscI8KlTfBadPxN3fEIFFcrgWhMZ L0JpHOEEZbrPM5vBecYZ1qL7JYfbovZPozrfyE5zmZk9omzLl9rG25JiGTX06yLk tyL9j85g1WIqfs+gRyp5FgAcfE36cxKTvo3IX1uwhAmq6pU0aT9iKbvOgP2SwX8g q3tqb/o1bY/9l7DNfwxXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddvkeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufhffjgfkfgggtgfgsehtkeertddt reejnecuhfhrohhmpeffrghgfhhinhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoe hilhhmrghrihesihhlmhgrrhhirdhorhhgqeenucggtffrrghtthgvrhhnpedtjeevueej geejvdffuedujeethffhhefgtdfhieejffekveekgfdtffejhfdtieenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgr rhhirdhorhhgpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtph htthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdr ohhrghdprhgtphhtthhopehsrhhinhgrthhhvddufeefsehgmhgrihhlrdgtohhmpdhrtg hpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthiesghhmrghilhdrtghomhdprhgt phhtthhopehmrghhiheirhhunhesghhmrghilhdrtghomhdprhgtphhtthhopegrlhhvhh gvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 13:52:18 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: =?utf-8?Q?=C3=81lvaro?= Herrera Cc: Mahendra Singh Thalor , jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall References: <202503111705.xy7fddu36qae@alvherre.pgsql> Date: Tue, 11 Mar 2025 17:52:17 +0000 In-Reply-To: <202503111705.xy7fddu36qae@alvherre.pgsql> (=?utf-8?Q?=22?= =?utf-8?Q?=C3=81lvaro?= Herrera"'s message of "Tue, 11 Mar 2025 18:05:59 +0100") Message-ID: <8734fj1mlq.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Álvaro Herrera writes: > Hello, > > On 2025-Mar-11, Mahendra Singh Thalor wrote: > >> In map.dat file, I tried to fix this issue by adding number of characters >> in dbname but as per code comments, as of now, we are not supporting \n\r >> in dbnames so i removed handling. >> I will do some more study to fix this issue. > > Yeah, I think this is saying that you should not consider the contents > of map.dat as a shell string. After all, you're not going to _execute_ > that file via the shell. > > Maybe for map.dat you need to escape such characters somehow, so that > they don't appear as literal newlines/carriage returns. I haven't looked at the code for this, but why are we inventing an ad-hoc file format? Why not use JSON, like we do for backup manifests? Then storing arbitrary database names won't be a problem. - ilmari