Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eM2Op-0004jG-CM for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2017 01:51:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eM2Oo-0005ap-KO for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Dec 2017 01:51:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eM2Oo-0005ae-DV for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2017 01:51:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eM2Ol-0002m1-Kv for pgsql-hackers@lists.postgresql.org; Tue, 05 Dec 2017 01:51:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vB51pndx022164; Mon, 4 Dec 2017 20:51:49 -0500 From: Tom Lane To: Michael Paquier cc: Thomas Munro , pgsql-hackers@lists.postgresql.org Subject: Re: Error handling (or lack of it) in RemovePgTempFilesInDir In-reply-to: References: <19907.1512402254@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Tue, 05 Dec 2017 10:45:27 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22162.1512438709.1@sss.pgh.pa.us> Date: Mon, 04 Dec 2017 20:51:49 -0500 Message-ID: <22163.1512438709@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Tue, Dec 5, 2017 at 8:40 AM, Thomas Munro > wrote: >> Belatedly, +1. The error hiding seemed a bit odd considering that we >> were prepared to log "unexpected file found ...". I probably should >> have questioned that instead of extending it monkey-see-monkey-do. > Well, I am -1 on this change. The coding before commit 561885d that > you have now pushed (timezone makes me answer later) was way more > conservative and I honestly preferred it as *only* the next postmaster > restart would remove remnant temp files which can cause potentially GB > of data to stay around. Uh ... I'm confused? That particular change only concerns whether we emit a log message, not whether the action is attempted or succeeds. regards, tom lane