Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIGNG-00DGnj-9g for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2024 00:02:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tIGNC-0052I1-BA for pgsql-general@arkaria.postgresql.org; Tue, 03 Dec 2024 00:02:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIGNB-0052Ht-HX for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2024 00:02:39 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIGN9-000jbk-Gi for pgsql-general@lists.postgresql.org; Tue, 03 Dec 2024 00:02:37 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4098A2540218 for ; Mon, 2 Dec 2024 19:02:34 -0500 (EST) Received: from phl-imap-06 ([10.202.2.83]) by phl-compute-05.internal (MEProxy); Mon, 02 Dec 2024 19:02:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barre.sh; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1733184154; x=1733270554; bh=V3aDHJ/rM9UhrSBIdQbImYDIjE9GDQBe P+j/ajJDsXk=; b=iBs59DBMDL7A+Li4aObVvTDg0/tvThs6WF+SHPxVoFgstgew zsK2mHg8A8RapdQz80ejE/kNrWtMNjC1BRIIkNvKhlNVzLucnG5gzcBPs0rzWFjB RnpKcrLFU8MwoJTNtFB51yf78oeAhjbZ/IOhkO6IBt6VcAgbLSu6WrSfl4E2mnFN S8rDuy/VkQTj0D3u6bFjGoAdlwOhUJvJsWQpQphcOIVu13S7OqgUUqsaq0ighk5d dcB7EZ00393oni/oZjuuHiNOm4XeqKT9dXpAeFe48/+E+gnKjzOuwaV6lJxHWodD Sa8Va7j0PseUCrHulraMMazBHkOr2FP54HmxAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733184154; x= 1733270554; bh=V3aDHJ/rM9UhrSBIdQbImYDIjE9GDQBeP+j/ajJDsXk=; b=C S3PDsfU6sHJPWw313IUBz321WoYPQIqX/IfsHqRSDwl+1D7Iw9TVg+J0uWATpreo C9Imk/Xa+ZCxGmRPS2kC/AxVmBRWZKZxDnOeGMIphOrcn7F5OV1DzO5UybzgMEzt 7rIUIqh/7v+74NiNE2strEmWt/0PnjXzJUPaQ3dmNmjDHrPA7KcRqu9n1w9azcNG 1TcDxfaP+Y8EufpPbjdpfg6Rev1EEeJ7J3LXxaTgBQkW6wzb5vOoZ2XFfNkoxN5w DodrgbpxQlLx4Pl7gJzHdu0iVJpoXw2SomHod6ePHUQKsosjtBL2ZSojoXJfX/05 A1H3yk4FXXsNvJ/5l6Qdg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddriedtgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepofggfffhvf fkufgtsegrtderreertddtnecuhfhrohhmpedfrfhivghrrhgvuceurghrrhgvfdcuoehp ihgvrhhrvgessggrrhhrvgdrshhhqeenucggtffrrghtthgvrhhnpeelieeugeevuedttd eukedtffeihfdtteejteduveetgeekvdeijeeigfeftdeggfenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepphhivghrrhgvsegsrghrrhgvrdhshhdpnhgspghrtghpthhtohepuddpmhho uggvpehsmhhtphhouhhtpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhish htshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i97614980:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id BAC8829C006F; Mon, 2 Dec 2024 19:02:33 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Tue, 03 Dec 2024 01:02:13 +0100 From: "Pierre Barre" To: pgsql-general@lists.postgresql.org Message-Id: <0d11ad5e-5903-49ce-8fff-4650919f4b44@app.fastmail.com> Subject: VACUUM FULL, power failure results in unrecoverable space Content-Type: multipart/alternative; boundary=1dd51c45685f420ba1169b547ccde4cb List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1dd51c45685f420ba1169b547ccde4cb Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --1dd51c45685f420ba1169b547ccde4cb Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hello,

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

Ini= tial analysis using https://github.com/iogui= x/pgsql-bloat-estimation/blob/master/table/table_bloat.sql indi= cated approximately 600GB of bloat in the table.

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

After s= erver recovery:

1. The database came ba= ck online successfully
2. The space used by the in-progress table reconstruction was not fre= ed
3. The newly wast= ed space (bloat + partial VACUUM FULL) is not shown using the above quer= y, 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
--1dd51c45685f420ba1169b547ccde4cb--