| От | Vitaly Belman |
|---|---|
| Тема | Storage space lost during an UPDATE |
| Дата | |
| Msg-id | fa96e3c6040703063768b2bc2e@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: Storage space lost during an UPDATE
|
| Список | pgsql-novice |
I ran the following query on my database: --------------- update bv_descriptions set description = REPLACE(description, '\\n', '\n'); commit; --------------- It finished fine but to my surprise when I ran "df" on the server the drive usage jumped from 44% to 60% which is additional 650MB. I tried to restart the server but it didn't do any good, eventually I tried to do a FULL VACUUM on that table and it did the trick and cleaned the lost space. I am still confused about what happened... What took these additional 650MB? I could understand this phenomenon if it happened before I did COMMIT... But why did it stay after COMMIT too? Thanks
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера