VACUUM PostgreSQL को रखरखाव प्रक्रिया हो जसले dead tuples (MVCC द्वारा छोडिएको पुरानो पङ्क्ति संस्करणहरू) बाट भण्डारण पुनः दावी गरी तथ्याङ्क अपडेट गर्दछ। Postgres को MVCC प्रत्येक UPDATE/DELETE मा dead rows सृष्टि गरेकोले, VACUUM bloat रोकी डेटाबेस स्वस्थ राख्न आवश्यक छ। Autovacuum यसलाई स्वचालित बनाउँदछ।
Dead tuples किन अस्तित्वमा छन् (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.
