I'm not shore
From: Guillaume Lelarge <guillaume@xxxxxxxxxxxx>
Sent: Tuesday, October 12, 2021 1:05:12 PM
To: Dustin Jantz <djantz@xxxxxxxxxxxxxx>
Cc: pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE
Sent: Tuesday, October 12, 2021 1:05:12 PM
To: Dustin Jantz <djantz@xxxxxxxxxxxxxx>
Cc: pgsql-admin@xxxxxxxxxxxxxxxxxxxx <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE
Hi,
Le mar. 12 oct. 2021 à 21:39, Dustin Jantz <djantz@xxxxxxxxxxxxxx> a écrit :
VACUUM FULL ANALYZE was ran on the 4 largest tables on the database from a remote server. Before the commands could be completed the server lost connection to the database. Normally the database disk usage is approximately 400 GB but after the terminated VACUUM FULL ANALYZE the disk usage is over 600 GB. Summing the disk used by the tables in the database with size is still around 400 GB but the disk used by the DB as a whole is over 600 GB. What is the best way to recover the disk space?
Postgres version 12.6
You probably have orphaned files. You can look for them with
https://github.com/bdrouvot/pg_orphaned.
--
Guillaume.