VACUUM minangka proses pemeliharaan PostgreSQL sing ngrebut panyimpenan saka dead tuples (versi baris sing wis lawas ditinggal dening MVCC) lan nganyari statistik. Amarga MVCC ning Postgres nggawe baris mati ing saben UPDATE/DELETE, VACUUM butuh banget kanggo nyegah bloat lan njaga database tetep sehat. Autovacuum nggawe iku otomatis.
Apa iku dead tuples (hubunge MVCC)
MVCC: an UPDATE/DELETE doesn't overwrite a row — it marks the old version obsolete
(a "dead tuple") and may create a new one. Dead tuples accumulate over time.
→ Without cleanup, dead tuples cause BLOAT: wasted disk space, slower scans
(more data to read), degraded performance.
VACUUM reclaims this dead space → keeps tables compact and queries fast.
