Re: TRUNCATE - timing of the return of disk space - caused by long-lived client?
В списке pgsql-general по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: TRUNCATE - timing of the return of disk space - caused by long-lived client? |
| Дата | |
| Msg-id | 20071026120526.GA5968@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | TRUNCATE - timing of the return of disk space - caused by long-lived client? ("Vince Negri" <vnegri@asl-electronics.co.uk>) |
| Список | pgsql-general |
Vince Negri wrote: > So I tried TRUNCATE on the table. It appeared to work - in that the > row count dropped to zero and the connected client was not disrupted, > and "du" on the postgres data directory showed a fall. > > But the available disk space (reported by "df") did not fall. I think you shouldn't worry about it. The file will eventually be closed (maybe after a couple of checkpoints) and the space returned to the filesystem. FYI what TRUNCATE does is create a new, separate file for the table and index storages. The old one can still be open for a while, but it should get detached not long after the transaction commits. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера