Re: drop table but file still exists

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: drop table but file still exists
Дата
Msg-id 2727.1242396841@sss.pgh.pa.us
обсуждение исходный текст
Ответ на drop table but file still exists  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-general
Luca Ferrari <fluca1978@infinito.it> writes:
> I'm just curious to know why after a drop table the disk file is emptied but
> still existent. What is the reason why the file is not deleted immediately?

It's protecting against some obscure race condition involving
reassignment of the relfilenode number to a new table.  I forget the
details but you could troll the archives for it if you really care
--- I think we put that in about two or so years ago.

            regards, tom lane

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: how do you get there from here?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: drop table but file still exists