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 1vueJq-00HQoK-1s for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Feb 2026 22:22:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vueJp-00FlQk-1h for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Feb 2026 22:22:21 +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 1vueJp-00FlQb-0t for pgsql-bugs@lists.postgresql.org; Mon, 23 Feb 2026 22:22:21 +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 1vueJm-00000000w5u-1QNt for pgsql-bugs@lists.postgresql.org; Mon, 23 Feb 2026 22:22:21 +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 61NMMFGL3626575; Mon, 23 Feb 2026 17:22:15 -0500 From: Tom Lane To: Nathan Bossart cc: Fujii Masao , Sergei Kornilov , =?utf-8?B?0J7Qu9C10LMg0KHQsNC80L7QudC70L7Qsg==?= , pgsql-bugs@lists.postgresql.org, =?utf-8?Q?=C3=81lvaro?= Herrera Subject: Re: basic_archive lost archive_directory In-reply-to: References: <202601301728.sfkizrto3t5i@alvherre.pgsql> <9b9341b0-942e-4d34-b94f-92bd918fad04@ya.ru> <1317421770387925@cea5cfd9-50d3-4d85-a924-a7cc75f8f215> Comments: In-reply-to Nathan Bossart message dated "Mon, 23 Feb 2026 15:38:47 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3626573.1771885335.1@sss.pgh.pa.us> Date: Mon, 23 Feb 2026 17:22:15 -0500 Message-ID: <3626574.1771885335@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Wed, Feb 11, 2026 at 03:14:15PM -0600, Nathan Bossart wrote: >> On Tue, Feb 10, 2026 at 10:06:25AM -0600, Nathan Bossart wrote: >>> As I mentioned upthread, IMHO we should simply remove the existence check >>> from the GUC check hook. basic_archive must already be written to handle >>> the archive directory disappearing at any moment, so we should be able to >>> rely on it without the extra stat(). > Any thoughts? I'll wait another week or so, but then will proceed with > committing/back-patching this. Agreed --- this seems like a pretty inappropriate check to be making in a check_hook. regards, tom lane