Re: Error handling (or lack of it) in RemovePgTempFilesInDir - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Error handling (or lack of it) in RemovePgTempFilesInDir
Date
Msg-id 22163.1512438709@sss.pgh.pa.us
Whole thread Raw
In response to Re: Error handling (or lack of it) in RemovePgTempFilesInDir  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Error handling (or lack of it) in RemovePgTempFilesInDir
List pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> On Tue, Dec 5, 2017 at 8:40 AM, Thomas Munro
> <thomas.munro@enterprisedb.com> 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


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Add PGDLLIMPORT lines to some variables
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] pow support for pgbench