-
+
Routine Database Maintenance Tasks
for inefficient use of space: if all but a few index keys on a page have
been deleted, the page remains allocated. So a usage pattern in which all
but a few keys in each range are eventually deleted will see poor use of
- space. The potential for bloat is not indefinite — at worst there
- will be one key per page — but it may still be worthwhile to schedule
- periodic reindexing for indexes that have such usage patterns.
+ space. For such usage patterns, periodic reindexing is recommended.
most of the rows in a table and would like the table to physically shrink
to occupy less disk space. VACUUM FULL will usually
shrink the table more than a plain VACUUM would.
+ The 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.