Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYMRj-00051H-NO for pgsql-committers@arkaria.postgresql.org; Mon, 08 Jan 2018 01:41:51 +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 1eYMRj-0000eM-A0 for pgsql-committers@arkaria.postgresql.org; Mon, 08 Jan 2018 01:41:51 +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 1eYMRj-0000eC-5T for pgsql-committers@lists.postgresql.org; Mon, 08 Jan 2018 01:41:51 +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 1eYMRg-000720-Nd for pgsql-committers@postgresql.org; Mon, 08 Jan 2018 01:41:50 +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 w081fjqf028072; Sun, 7 Jan 2018 20:41:45 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Improve error handling in RemovePgTempFiles(). In-reply-to: <17683.1515343346@sss.pgh.pa.us> References: <17683.1515343346@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 07 Jan 2018 11:42:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28070.1515375705.1@sss.pgh.pa.us> Date: Sun, 07 Jan 2018 20:41:45 -0500 Message-ID: <28071.1515375705@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Hmmm ... actually, in the recursive call case, it wouldn't be that > awful to ignore ENOENT either; if a directory goes away between being > stat'd and being opened, you'd still get a log message about rmdir > failure at the caller level. So maybe we should just do your > second alternative as-is (ie, code as above but without missing_ok). > Having an explicit control parameter seems marginally clearer but > I'm not sure it's buying anything meaningful. Thoughts? Hearing no comments, I did it the first way. regards, tom lane