☆ 8 r/databases ·by Nate ·2026-11-01 VACUUM is not freeing disk space 1601 views Deleted about 40 GB of rows from a Postgres table. VACUUM ran, but the table file is the same size. Is something wrong? ⧉ Copy link⚑ Report
☆ 0 Y Yuki ·2026-11-01#1 VACUUM marks space reusable inside the table, it does not return it to the OS. Check pg_total_relation_size before and after by inserting new data. ⧉ Copy link⚑ Report
☆ 0 E Emma ·2026-11-01#3 It rewrites the table and takes an exclusive lock. Schedule it. pg_repack is the usual online alternative. ⧉ Copy link⚑ Report
3 replies