Re: Which postgres process cleans up deprecated datafiles

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Which postgres process cleans up deprecated datafiles
Дата
Msg-id 791982.1647542411@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Which postgres process cleans up deprecated datafiles  (Loles <lolesft@gmail.com>)
Список pgsql-admin
Loles <lolesft@gmail.com> writes:
> What postgres process, or system, identify and delete datafiles that have
> become unassociated? The truncate operation doesn't appear to be.. the
> datafile has existed for some time after the truncate command execution
> finished.

The zero-length file is a placeholder to ensure that that relfilenode
number doesn't get re-used right away.  It'll get cleaned up during
the next checkpoint.

            regards, tom lane



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

Предыдущее
От: Loles
Дата:
Сообщение: Which postgres process cleans up deprecated datafiles
Следующее
От: Hosney Osman
Дата:
Сообщение: docker pgadmin