I am running out of disk space on my database server. I have never executed a vacuum full
and I'm hoping that vacuum full
will free some space.
Have you run vacuum full
before, and if space was freed up, how much was it?
I am running out of disk space on my database server. I have never executed a vacuum full
and I'm hoping that vacuum full
will free some space.
Have you run vacuum full
before, and if space was freed up, how much was it?
physically vacuum full makes a copy of table and destroys an old one. This leads to several conclusions:
https://www.postgresql.org/docs/current/static/sql-vacuum.html
This method also requires extra disk space, since it writes a new copy of the table and doesn't release the old copy until the operation is complete. Usually this should only be used when a significant amount of space needs to be reclaimed from within the table.
You can find out the size of your data without gaps, by taking restoring copy of it, eg pg_dump
/pg_restore