I am using Postgres 9.4.
I just ran vacuum full. I read about the differences between vacuum and vacuum full and considered a lot if I should run vacuum or vacuum full. As far as I can say, I required vacuum full and my db size came down from 48 GB to 24 GB.
Would the old indexes would have become obsolete after vacuum full and do I need to run reindex?
I ran "vacuum full verbose analyze", so analyze is done along with vacuum full.
I read at several places that for Postgres > 9.0, I don't need reindex after vacuum full, but I want to be sure that it is the case.
A
REINDEX
immediately after aVACUUM FULL
is useless becauseVACUUM FULL
itself rebuilds the indexes.This is mentioned in the 9.4 documentation in Recovering Disk Space :
You are correct that this was not the case before version 9.0, which had
VACUUM FULL
reimplemented differently.Up to version 8.4, the reference doc for VACUUM mentioned the need to reindex:
But this caveat is now obsolete.