Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2AON-0000wE-T5 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 09:02:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j2AOL-0004vn-RN for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Feb 2020 09:02:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2AOL-0004vf-FM for pgsql-hackers@lists.postgresql.org; Thu, 13 Feb 2020 09:02:37 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2AOI-0000eg-NC for pgsql-hackers@postgresql.org; Thu, 13 Feb 2020 09:02:35 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4355A6C8; Thu, 13 Feb 2020 04:02:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 13 Feb 2020 04:02:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=kGsCXhCQ4n4axZXlekBk7WYWkFxnR1x49bt9No2h4 HI=; b=hazxZG1WCgy2acTWdEopnZMEN5p0ZyRSd/F9VLBVnWvIBGfJbrQk1Aost E8F51z5xApXxgyTi4PRhzwwkGCqiLOycdOn2Nc5YvsqzyGyDn8xUwYu5e2v+hYYH Oyxejik+s4FHfSjHVhBBzKH/0yw7wqHh0WW1/GOfKIVMgoFvXtTdSZn7iyDrPCwX 7DPAgSXWORA7NC95F5a+5jzKIDa9/i7zWUfgHYbVle0rqnaA/OemtKtLiz85onrt KjfEi8aSEIoGtQ2pe/FFNvTBux/xx/+IVZWpeogm+E5fzEPn/A8e/VqcM5ca4OoQ cVV9XeurhZDPTD/Zi828FwED0fiOg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieejgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvdehhedrudduvdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2ff70.dip0.t-ipconnect.de [93.242.255.112]) by mail.messagingengine.com (Postfix) with ESMTPA id 2923030606E9; Thu, 13 Feb 2020 04:02:32 -0500 (EST) Subject: Re: client-side fsync() error handling To: Michael Paquier References: <20200212052819.GD1464@paquier.xyz> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <0412a2fb-cbde-08c6-9ff2-cfab5c27a3b8@2ndquadrant.com> Date: Thu, 13 Feb 2020 10:02:31 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200212052819.GD1464@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-02-12 06:28, Michael Paquier wrote: > Now, don't we need to care about durable_rename() and make the > panic-like failure an optional choice? From what I can see, this > routine is used now in the backend for pg_basebackup to rename > temporary history files or partial WAL segments. durable_rename() calls fsync_fname(), so it would be covered by this change. The other file access calls in there can be handled by normal error handling, I think. Is there any specific scenario you have in mind? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services