why do we use vaccum command in PostgreSQL exactly? -
vacuumreclaims storage occupied deleted tuples. in normal postgresql operation, tuples deleted or obsoleted update not physically removed table; remain present untilvacuumdone. therefore it's necessary vacuum periodically, on frequently-updated tables.
this got man page. want know cases required.
if delete rows or update them, vacuum required free space re-use. postgresql automatically autovacuum, not common need manually run vacuum.
you might manually run vacuum after updating large proportion of table, if you're going big update.
Comments
Post a Comment