Why does PostgreSQL ftruncate before unlink?

Поиск
Список
Период
Сортировка
От Jon Nelson
Тема Why does PostgreSQL ftruncate before unlink?
Дата
Msg-id CAKuK5J1YZZXp5KxbGn4AJhAbmfSUCcoFZmp4My+u6s7pgBB3Og@mail.gmail.com
обсуждение исходный текст
Ответы Re: Why does PostgreSQL ftruncate before unlink?
Список pgsql-general
When dropping lots of tables, I noticed postgresql taking longer than
I would have expected.

strace seems to report that the largest contributor is the ftruncate
and not the unlink. I'm curious what the logic is behind using
ftruncate before unlink.

I'm using an ext4 filesystem.

--
Jon


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