PostgreSQL directory very full

postgresql-8.4

In the /var/lib/pgsql/data/base Postgres that in version 8.4 and it was identified that the error single bank is with 37G which is absurd, is not already realized vacuum full declined nothing and also I put the autovacuum as off in postgresql.conf. the only thing I can do is back up and after that uninstall and reinstall the bank to resolve palliative-mind.

Can someone help me?

I am using Centos 6.7 and I know the Bank that's full …

Best Answer

Vacuum (even FULL) isn't the most efficient when it comes to reclaiming space from bloated indexes. And in PostgreSQL 8.x it was even more the issue. I do remember reading about tests where dump, drop and restore might be indeed faster and gets better results than vacuum full. And this is what I would suggest if possible.

There is another option you might try first though, quoting PostgreSQL 8.4 documentation:

The FULL option is not recommended for routine use, but might be useful in special cases. An example is when you have deleted or updated most of the rows in a table and would like the table to physically shrink to occupy less disk space and allow faster table scans. VACUUM FULL will usually shrink the table more than a plain VACUUM would. The FULL option does not shrink indexes; a periodic REINDEX is still recommended. In fact, it is often faster to drop all indexes, VACUUM FULL, and recreate the indexes.