Skip to content

MG26 — VACUUM FULL / CLUSTER rewrite the table under a lock

Group: Migration safety · Auto-fixable: no

VACUUM FULL and CLUSTER rewrite the entire table while holding an exclusive lock. Prefer an online repack (e.g. pg_repack) to reclaim space without blocking reads and writes.

bad: VACUUM FULL t;
bad: CLUSTER t USING idx;

Disable this rule in banshee.toml:

[lint]
exclude = ["MG26"]

Or silence one line with -- noqa: MG26. See Linting.