Re: Cleaning up unreferenced table files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cleaning up unreferenced table files
Дата
Msg-id 29232.1115498259@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Cleaning up unreferenced table files  (Heikki Linnakangas <hlinnaka@iki.fi>)
Список pgsql-patches
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> Maybe we should take a different approach to the problem:
> 1. Create new file with an extension to mark that it's not
>     yet committed (eg. 1234.notcommitted)

This is pushing the problem into the wrong place, viz the lowest-level
file access routines, which will now all have to know about
.notcommitted status.  It also creates race conditions --- think about
backend A trying to commit file 1234 at about the same time that
backend B is trying to flush some dirty buffers belonging to that file.
But most importantly, it doesn't handle the file-deletion case.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Cleaning up unreferenced table files
Следующее
От: Bruce Momjian
Дата:
Сообщение: Dealing with CLUSTER failures