Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nK2Ho-0001pV-U1 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Feb 2022 18:10:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nK2Hn-0007JU-CH for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Feb 2022 18:10:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nK2Hl-0007JK-AE for pgsql-hackers@lists.postgresql.org; Tue, 15 Feb 2022 18:10:47 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nK2Hh-0007M4-64 for pgsql-hackers@lists.postgresql.org; Tue, 15 Feb 2022 18:10:44 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 5BBEE3200A47; Tue, 15 Feb 2022 13:10:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 15 Feb 2022 13:10:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=Rb7B0WeYNk4YM/ftyGtJ2N+cW0m5hkqS3kHg7v +0ack=; b=1+PwjH9f6RE73WS/50YpB5HIyadrwlUjS0u8hACTL3NY4awEKzuYv+ zAr9AQCorOsjhFRjWAcmLGpdvZyCrYpHklk7DJ2NQYEvXxKi6x6yQ1WwcdP2MDEl KmBkeLV0fQlR5vEsUUQ9vpuH/qnpnip442pkLdxIlugR1cJy80p/xsrNT7JH/yCn vsMjgFZlRrQpHMvqFf6OdES03cSC8+2Z0+76JOFNRboF4cdO126rHL0IjhKga2Bj 8p5XiYxVIvuo+q+yzQQ8uk63PnpRUSUY8hP7OgTFOJ8RThlldPiIB4pg6A7Atc4x fL9ngYy+MCEt1lCuwICmVcSO70rgxPBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Rb7B0WeYNk4YM/fty GtJ2N+cW0m5hkqS3kHg7v+0ack=; b=EWTdfn38CdMHjWine5MOr6X8Jaf18Ggr4 o9opWNA4MKb2M2eGQA4LmevkVlYIt7/Gh1IBEJREd0IsHd9QR935KpfXsU8HE2VM +fC1JLibtOW2ggG+4m7Ngst5c7HEnHkNYdPUQFL+wn8hZdsFZ4BdMDLyn2OcLBWj Bw+g8E2jD1FMF+dWbrTNr5MF7PXY3u50o6YkgCziaUWvXoxXHPThCpxfCLeGkZm8 S6FYvJaNvScz1rpLYZji3ZoNYmmVtq6p7QqQoyNjCWKufH1BPI2WV1Edp4OLwsVG TBKRBd2w2WUisYC1vPH3dARDfopSfJZXfgWPpi78NzEaltigFoKgg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeeggddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedukefhkeelueegveetheelffffjeegleeuudelfeefuedtleffueejfffh ueffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Feb 2022 13:10:35 -0500 (EST) Date: Tue, 15 Feb 2022 10:10:34 -0800 From: Andres Freund To: Nathan Bossart Cc: Bharath Rupireddy , "Bossart, Nathan" , Tom Lane , Julien Rouhaud , PostgreSQL Hackers Subject: Re: Avoid erroring out when unable to remove or parse logical rewrite files to save checkpoint work Message-ID: <20220215181034.nyhd6fwzyg3vgxls@alap3.anarazel.de> References: <20220127010109.GA352793@nathanxps13> <20220201235538.GA740616@nathanxps13> <20220202183738.GA746893@nathanxps13> <20220204000340.GA1164333@nathanxps13> <20220215170952.2ruszfrv6qvirmhq@alap3.anarazel.de> <20220215175752.GA2413813@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220215175752.GA2413813@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-15 09:57:53 -0800, Nathan Bossart wrote: > IIUC you are advocating for something more like the attached patches. At least for patch 1 yes. Don't have the cycles just now to look at the others. I generally think it'd be a good exercise to go through an use get_dirent_type() in nearly all ReadDir() style loops - it's a nice efficiency win in general, and IIRC a particularly big one on windows. It'd probably be good to add a reference to get_dirent_type() to ReadDir[Extended]()'s docs. Greetings, Andres Freund