Re: fd.c doesn't remove files on a crash-restart

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fd.c doesn't remove files on a crash-restart
Дата
Msg-id 8367.1458151513@sss.pgh.pa.us
обсуждение исходный текст
Ответ на fd.c doesn't remove files on a crash-restart  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: fd.c doesn't remove files on a crash-restart  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: fd.c doesn't remove files on a crash-restart  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> Hello,
> fd.c[1] will remove files from pgsql_tmp on a restart but not a 
> crash-restart per this comment:

> /*
> * NOTE: we could, but don't, call this during a post-backend-crash restart
> * cycle.  The argument for not doing it is that someone might want to 
> examine
> * the temp files for debugging purposes.  This does however mean that
> * OpenTemporaryFile had better allow for collision with an existing temp
> * file name.
> */

> I understand that this is designed this way. I think it is a bad idea 
> because:

Possible compromise: remove files only in non-Assert builds?
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: fd.c doesn't remove files on a crash-restart
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Choosing parallel_degree