VACUUM FULL, power failure results in unrecoverable space - Mailing list pgsql-general

From Pierre Barre
Subject VACUUM FULL, power failure results in unrecoverable space
Date
Msg-id 0d11ad5e-5903-49ce-8fff-4650919f4b44@app.fastmail.com
Whole thread Raw
Responses Re: VACUUM FULL, power failure results in unrecoverable space
List pgsql-general
Hello,

I encountered an issue while attempting to reclaim space from a heavily bloated table:

Initial analysis using https://github.com/ioguix/pgsql-bloat-estimation/blob/master/table/table_bloat.sql indicated approximately 600GB of bloat in the table.

I initiated a VACUUM FULL operation to reclaim this space, but during execution, the server experienced a power failure.


After server recovery:

1. The database came back online successfully
2. The space used by the in-progress table reconstruction was not freed
3. The newly wasted space (bloat + partial VACUUM FULL) is not shown using the above query, only the initial bloat.


Is there a way to reclaim this space without resorting to a full pg_dump and pg_restore cycle? 

Thanks.

Best,
Pierre

pgsql-general by date:

Previous
From: Bharani SV-forum
Date:
Subject: Re: Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X
Next
From: Adrian Klaver
Date:
Subject: Re: Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X