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 1sxcDr-00BETc-Qs for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Oct 2024 01:07:39 +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 1sxcDp-0044uh-Tn for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Oct 2024 01:07:38 +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.94.2) (envelope-from ) id 1sxcDp-0044uY-JN for pgsql-hackers@lists.postgresql.org; Mon, 07 Oct 2024 01:07:37 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxcDn-002wcv-4i for pgsql-hackers@postgresql.org; Mon, 07 Oct 2024 01:07:36 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 714BF1140129; Sun, 6 Oct 2024 21:07:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Sun, 06 Oct 2024 21:07:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm2; t=1728263253; x=1728349653; bh=FUBQ5C1NvM Ds8C+B17RFNWNvSzgVrQk1msEmw4H144A=; b=b43P4YIZge5w/GxTO/NGRHHpeB l0R4i5lqkcjj06VDyW7aF57BqXlWNV87mOivWXRXLD88WIHd9y8k4vR4hmuJTEPn SLGoGFaxBB+p5YSsADVZ0m18CcrlK4AxyRr4QtfrRH5fycpCZZcPV8Gq/HCUb1pq 6I43nSEUCxlDXsUSs1WnH+Ymkl6rHLD6CX/NPEMQx57+23ZVwKK6zoKa2FMEpRnD /knAhi7jQwgD3Ue7JCrz5KTASH3obx7QU+gxvEu1xOb8+Kb0JaC6s+88ThSleQpt 7SEnfhJ3HFdRywKEtJNpMD8QLruTFSBTJJEcM/0f2OBDyc6KLn1oxrj8+yjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1728263253; x=1728349653; bh=FUBQ5C1NvMDs8C+B17RFNWNvSzgV rQk1msEmw4H144A=; b=AF4Rky90vodvjlXaiDKWPcp46cuR8gtLy1gTEDGl04Sf A0g5MMOFNwBcRmQkQATIUMeSbVVRN1ufX337wwHqn2Vsy0JZOVz+M4EG5wtWYP6v fNxEAMWaxkpge47qdRaF0EYROFgtD2in1Wb+Y3WK+DnLvg26yIo4MSPgK46u9wk9 auwjtdwzDBAtoh16+Nnh3HP0lUwmgifQ8lRaMjKHjJWK3JxQYTAvJjwHvkiMP/KR qByfyGNoyHk5q2RYe4rkBEmH/D5p1TUv/eO2heGEOd6QST0HeCnAdc2DEMMwDLJJ Jh2jT74PJyfJbiHU2+C8Ph+b+TOMAdpG/Dk02GsgvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvkedggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhr tghpthhtohepsghtohhgihifrghrrgihuhhushhhihesohhsshdrnhhtthgurghtrgdrtg homhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdr ohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 6 Oct 2024 21:07:30 -0400 (EDT) Date: Mon, 7 Oct 2024 10:07:10 +0900 From: Michael Paquier To: Nathan Bossart Cc: btogiwarayuushi , pgsql-hackers@postgresql.org Subject: Re: Function for listing pg_wal/summaries directory Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o+rG2NKVFjXlYFCO" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --o+rG2NKVFjXlYFCO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Oct 04, 2024 at 10:02:11AM -0500, Nathan Bossart wrote: > Could you explain why you feel the existing support functions are > insufficient? Because it is not possible to outsource the scan of pg_wal/summaries/ to a different role, no? On HEAD, one would require a full access to the data folder, as pg_ls_waldir() does not recurse. Perhaps, rather than introducing a new function, we should just extend pg_ls_dir_files() so as it can optionally recurse, then use this option in the existing pg_ls_waldir() to show stats for pg_wal/ and pg_wal/summary/? You'd optinally need to print the relative path of the file in the output of the function, meaning that any summary file in should be shown as summaries/blah.summary. Just an idea for the bucket of ideas. This would be unconsistent with the existing pg_ls_archive_statusdir(), though, so using a new function may be just better and simpler. -- Michael --o+rG2NKVFjXlYFCO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmcDND4ACgkQnvQgOdby QH1wKQ//aZsN3aB4BnkeH5sw3HOXIM7M4jwITaRWNXw4HULn2holFTRCQ90WoopH En9EiVSK0nm9KAlJTMdpCGTyJHSfzum4mQ4tSU/Sbox6jb3I8OH91TSnT4KBhIwO 5qvBK17Cf5uhmhjMkh/X9o3S20uGflM6W6uZCmlwNhFQhlgR6Bxx7CE3uze2IwPd Dr2iwOWbJJQu45o3DrzGrkQ282cKRBaoBIuOk+zOHC59FuwXyO174IiX1N08/84/ Z9+PjiWH8HIMFWt0O4xEMdBRO7EX5fLPZ8svILesqLqBAiZyx9XXoAiYQ2ADQ/Es MB083HORWMD9nOukixzvxZGco/3S8B4yXDf1kBoV0XbqhL38db1zl9U5GhRA8enT 5eIqcbRHLEQ8Ham+Ks6C9OADb4gC4SD2QjR5k8CI6PPYbcLmGcxZeLDaahs0Hp7k N+516pdMcv1XoGYN/cgA3UnNGAOT2q2ZyxZPwOVDxB01WttqBOy8sdBOAIylf3LP WySttw82BwqwrcqlC659cY7uAFiTqRwLzDNz2eFhEDfq88wPlJmzx1hdY2NlTIXr xfbvXeYIoJzoZ8YY875wpGOEWsudFYRcrQR7YFKqUNfqSYvoy8LbOcMRa1zJndRO bikD26EOrF9fQFdSazxqiXG5GdUsVzQL051pUChiL+Yf3TGwIKw= =B6/u -----END PGP SIGNATURE----- --o+rG2NKVFjXlYFCO--