VACUUM truncation controls
vacuum_truncate GUC/reloption, TOAST reloption inheritance and reducing the lock impact of relation truncation.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · minor
- PostgreSQL 18 · shipped · improved · moderate · 2 commits · +129 / -16 lines
Threads
- Optimize truncation logic to reduce AccessExclusive lock impact
- problems with toast.* reloptions
- [PATCH] trenary reloption type
- Remove unused vacuum-truncate-auto injection point
- Fixes inconsistent behavior in vacuum when it processes multiple relations
- Prolonged truncation phase during vacuum on toast table with repeated interruptions by lock waiters and a proposed POC patch
- TOAST table vacuum truncation parameter inheritance bug (?) in autovacuum
- vacuum_truncate configuration parameter and isset_offset
- Disabling vacuum truncate for autovacuum
- Re: Proposal - Reduce lock during first phase of VACUUM TRUNCATE from ACCESS EXCLUSIVE to EXCLUSIVE
- reloption to prevent VACUUM from truncating empty pages at the end of relation