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 1w2AAv-0002rR-04 for pgsql-committers@arkaria.postgresql.org; Mon, 16 Mar 2026 15:48:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2AAr-00AvIr-2b for pgsql-committers@arkaria.postgresql.org; Mon, 16 Mar 2026 15:48:10 +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 1w2AAr-00AvIj-12 for pgsql-committers@lists.postgresql.org; Mon, 16 Mar 2026 15:48:10 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2AAo-00000000283-2x18 for pgsql-committers@lists.postgresql.org; Mon, 16 Mar 2026 15:48:09 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id ABB561D00114; Mon, 16 Mar 2026 11:48:06 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 16 Mar 2026 11:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1773676086; x= 1773762486; bh=Tokms6fsGJPw/KS4yu3cyHuGmd0EWDYFnPaU6ZqEvH0=; b=B TqyWKuX++J7pp3SpjU0PxlIeUmJV8Tw8zaZimoemM2Stc7qJHc7fqmggSRCKB15I fY53pkXZfBbrOAo6XYAuxWlI3+YAZHYLCmS59uUDn13fzXbhLYGARL7ymGBIfAgv IrZkhTm69tqQtWJLFJt/KhdkdynGr98lIWz+ITZtZ2SCrF75DKRTqr92VejqxvdN pwLM3pc/YX1hBK4eT2/4YC9Yfm9lCz6VHitRtc+nLGQs2uthbISEboO0YttHMBJT Zw2rw4vCdXzxFBiI/PsNPTLp2yan/y1zDtjEfRtU26mUIL9Zw5ghdgHU5l3T4m32 BbEsd4CPQ/oA3lCOOfpIw== 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=1773676086; x=1773762486; bh=T okms6fsGJPw/KS4yu3cyHuGmd0EWDYFnPaU6ZqEvH0=; b=itHDQMfWDNg77GpkZ VbJqcpCWKwDZby08Abn7npkNMH23Rbjcxqy6tVpsEapvWj6ILHH7BAqY19b9DfiC ONQZMG2id4z8jqHEHppzizmt3+5JuZ8oaLUw8CTgmsm+6HXJV8XPWzNZi57a3AvI SYD1AAC/opsHl54kGPP6cT/n89ZJCSSV9itjvl1CFQwAM7fAJ/4Oa/vbjbyQKjzi io9SpRvNhYdfIZDyFN2rX15x/6+YERKbQZbPzr7mpwEpk1IQKW+vMqxHKBtDIiQ/ lUVNZ8aHoJKIcXvHy/dGzTQLCcBelqbo0YWzW9skYZ0nVlEk+sOkIjpTmz9hiFQE 5HERg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvleekjeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfggtggugfgjsehtkeertd dttdejnecuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgeqnecuggftrfgrthhtvghrnhepteeuvdehffekvefgueehve etveekgfegtddtueefueehuddutdfhfeffhfejfeffnecuffhomhgrihhnpegvnhhtvghr phhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghp thhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgrhhhiiehruhhnse hgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqtghomhhmihhtthgvrhhssehl ihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrd hpghhhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Mar 2026 11:48:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1773676084; bh=0k3i206wzlLvFfQ/6NBFbCKqaFqdJdFLbApQB8sA29w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=OI8y6Lujk8nEiROcPQRtLYYsb1KvDcw6AhWyV7MP3mv+ZV0OZRsAleIUhV5motYUo TUFfZ2qjZ91YQotoWmHDqOpMJcqHC2Mpx8LRZO0mK9Ni+tNSWs10hRfTfe//cs2JM2 SglVvxzfUuBpAxzrGAqjdiIN7IHTXRYGT0mISwlgqsqkcag/1Odery1fkb4+Y7sbJt jvNsESxLjqy0dTE3Kt2g+DoeMcghfPmPtZgkCpbsE9WEwVa3yJmL0fhES0CkEKul0w bvMh27akdVWX+HdOuwYcUbKlH/Div0qZpVqChspxoWk7TAKx9Ovk4NhPjtpQngpQpE RxlJ7w5zhm+sA== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id D3E7E7B; Mon, 16 Mar 2026 16:48:04 +0100 (CET) Date: Mon, 16 Mar 2026 16:48:04 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mahendra Singh Thalor Cc: Tom Lane , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix small memory leak in get_dbname_oid_list_from_mfile(). Message-ID: <202603161539.zldv3z456gn4@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 On 2026-Mar-16, Mahendra Singh Thalor wrote: > We were trimming slashes due to the below test case. > > *Ex:* > ./pg_dumpall -f dumpdir --format=d > > ./pg_restore *dumpdir/ *-d postgres -C --format=d --verbose > pg_restore: found database "template1" (OID: 1) in file "*dumpdir//map.dat*" > pg_restore: found database "postgres" (OID: 5) in file "*dumpdir//map.dat*" > pg_restore: found 2 database names in "map.dat" > pg_restore: need to restore 2 databases out of 2 databases > > Here, before map.dat, there were 2 slashes so we were trimming slashes. > Please add your opinion for this output. I think this is perfectly fine. Two slashes work correctly, and many other tools behave this way when given redundant slashes. If the user doesn't want to see the redundant slashes, they can just not specify a trailing slash in the argument value. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "¿Cómo puedes confiar en algo que pagas y que no ves, y no confiar en algo que te dan y te lo muestran?" (Germán Poo)