admin

VACUUM

Reclaims reusable space from dead tuples and optionally refreshes planner statistics. Ordinary vacuum does not generally shrink the file; cannot run inside a transaction block.

Formal Syntax & Structure

sql syntaxsql
VACUUM (ANALYZE) bm_lab.items;

Working Example

Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.VACUUM (ANALYZE) bm_lab.items;
SQL Reference