Re: pgsql: Improve error handling in RemovePgTempFiles().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Improve error handling in RemovePgTempFiles().
Дата
Msg-id 28071.1515375705@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Improve error handling in RemovePgTempFiles().  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Improve error handling in RemovePgTempFiles().  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-committers
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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Back off chattiness in RemovePgTempFiles().
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: pgsql: Improve error handling in RemovePgTempFiles().