Обсуждение: Recover Disk Space From Terminated VACUUM FULL ANALYZE

Поиск
Список
Период
Сортировка

Recover Disk Space From Terminated VACUUM FULL ANALYZE

От
Dustin Jantz
Дата:

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

 

Kind regards,

 

Dustin Jantz

 

Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE

От
Guillaume Lelarge
Дата:
Hi,

Le mar. 12 oct. 2021 à 21:39, Dustin Jantz <djantz@frontporch.com> 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.

Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE

От
Satoshi Nakamoto
Дата:
I'm not shore


From: Guillaume Lelarge <guillaume@lelarge.info>
Sent: Tuesday, October 12, 2021 1:05:12 PM
To: Dustin Jantz <djantz@frontporch.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE
 
Hi,

Le mar. 12 oct. 2021 à 21:39, Dustin Jantz <djantz@frontporch.com> 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.