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 1ts33T-00DzKI-9d for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 17:06:11 +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 1ts33R-002xfr-Qo for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2025 17:06:09 +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 1ts33R-002xfj-EO for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 17:06:09 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ts33M-002GO3-12 for pgsql-hackers@lists.postgresql.org; Tue, 11 Mar 2025 17:06:08 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id 26E891382D3A; Tue, 11 Mar 2025 13:06:03 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 11 Mar 2025 13:06:03 -0400 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741712763; x=1741799163; bh=l 0bAtHw8L3RUd03Xf5uwyRJH0YpfrcdmJt76CDXLiuQ=; b=Swabr6vIRU8/VTGGx vYTxrGyk1f7q9Aujie2NkYEpD6UYn4va4H69opjxEtfST1JPE4ZNe2vgL5zE+O/9 Z0uDT5LSNKc4dYzYx8/k2rpnDeAago5D+t/FoNpCIEjZKmFiCc9SFgB4T9rNef5E brjzoSXSxL51SFrh/J269cl/ATMyxmwLYki9LDOGkVxSpa85iQHDypYinsdHasOd JbbZd8WR8o6YiUiwm+6G+4K8U1C057jV0OETXdHVjau7YhiRwBhHUZtOlV9wOuzZ Vfl/4DMdE9h5dZ9Ftht1cn6lpNDhu8+KdZ/lC28BG7uochwIlTFjc3z0p547h/dg JUYSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddvjeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdehueffhefgueekueef heehgffhuefgfedukeejveduffegffekgeffffevgeehnecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsg gprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehjihgrnhdr uhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgrhhhiie hruhhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepshhrihhnrghthhdvudeffeesghhm rghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrd hpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 13:06:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741712759; bh=+BMPpwRWFz+9dmX25y6VRvAa2Yl9nc+7un05NhNrnf8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=L2hTJR6v+8HQ8nfJpb567DFMzUmyXWVKkSoBnFHgcu+GzkynvA7DNZOwe6hi5OQPC 6Gun8U76VAek8+5exkXdlPkTiJibCNownoVeiN433Ix/eJy3H85k1iqruzQyOPLEch 87gFen3GCjV6laU/KpwfxcXo3ILrGhs8SgX9iDn/yZ3KUwnJe1W2cAoxaWRfal48Ki PoIVVRbJqyWKtZOJcoxwtbQpLD6+Ds6bvNUvfntr6JtHcO7Q/xFBWgk6Wlag+23tgh yg9syvBjnFIT2YauiZLKC1So+vuvzu7DwFxlqz+3IQ44ZO+D+Trn+1NLs9KE6DTej/ kVNG9ReFPz9pw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id ADC0D91; Tue, 11 Mar 2025 18:05:59 +0100 (CET) Date: Tue, 11 Mar 2025 18:05:59 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mahendra Singh Thalor Cc: jian he , Srinath Reddy , pgsql-hackers@lists.postgresql.org Subject: Re: Non-text mode for pg_dumpall Message-ID: <202503111705.xy7fddu36qae@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/