Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE

From: Satoshi Nakamoto <70camero(at)live(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, Dustin Jantz <djantz(at)frontporch(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE
Date: 2021-10-12 20:22:40
Message-ID: BYAPR02MB64384C8DFC0B1AF5EF3685D7B3B69@BYAPR02MB6438.namprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I'm not shore

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Sent: Tuesday, October 12, 2021 1:05:12 PM
To: Dustin Jantz <djantz(at)frontporch(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE

Hi,

Le mar. 12 oct. 2021 à 21:39, Dustin Jantz <djantz(at)frontporch(dot)com<mailto:djantz(at)frontporch(dot)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<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbdrouvot%2Fpg_orphaned&data=04%7C01%7C%7C1044e049ed9948eb2d5208d98dbba871%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637696659399527762%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4jrg%2B77YdXRRihQHkpKVrOHteCqXH0JhyQGzdkHFj6Q%3D&reserved=0>.

--
Guillaume.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Henry Francisco Garcia Cortez 2021-10-14 21:34:57 bgwriter_flush_after
Previous Message Guillaume Lelarge 2021-10-12 20:05:12 Re: Recover Disk Space From Terminated VACUUM FULL ANALYZE