Re: DROP DATABASE vs patch to not remove files right away

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: DROP DATABASE vs patch to not remove files right away
Дата
Msg-id 48055912.2020109@dunslane.net
обсуждение исходный текст
Ответ на Re: DROP DATABASE vs patch to not remove files right away  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
>   
>> Tom Lane wrote:
>>     
>>> I think that it should be coded
>>> to ignore ENOENT the same as the bgwriter does, and that it should press
>>> on and keep trying to delete things even if it gets a failure.
>>>       
>
>   
>> Perhaps, if it gets ENOENT, record this fact -- and after rmtree
>> returns, retry the whole thing.
>>     
>
> Er, retry what?  There was, presumably, nothing to delete.
>
>             
>   

Yeah. I agree rmtree() should treat ENOENT as non-fatal.

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: DROP DATABASE vs patch to not remove files right away
Следующее
От: "Stephen Denne"
Дата:
Сообщение: Re: count(*) performance improvement ideas