▲ | petergeoghegan 3 days ago | |||||||
> In a previous use case, when using postgres as a WAL-like append only store, I noticed that indexes would get massive. Then, after a while, they'd magically shrink. It's possible to recycle pages within indexes that have some churn (e.g., with workloads that use bulk range deletions). But it's not possible for indexes to shrink on their own, in a way that can be observed by monitoring the output of psql's "\di+" command. For that you'd need to REINDEX or run VACUUM FULL. | ||||||||
▲ | dangoodmanUT 3 days ago | parent | next [-] | |||||||
I may not be remembering fully, maybe the indexes never shrunk but the tables did in size. Is there no way to automatically clean up indexes then? | ||||||||
| ||||||||
▲ | jashmatthews 3 days ago | parent | prev [-] | |||||||
Does vacuum not release free pages at the end of an index file in the same way it does for the heap? | ||||||||
|