Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPRGl-00065d-C8 for pgsql-admin@arkaria.postgresql.org; Tue, 07 Feb 2023 16:56:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPRGj-0003kS-CQ for pgsql-admin@arkaria.postgresql.org; Tue, 07 Feb 2023 16:56:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPRGj-0003kI-1Z for pgsql-admin@lists.postgresql.org; Tue, 07 Feb 2023 16:56:33 +0000 Received: from jakobs.com ([85.214.83.89] helo=rs.plausibolo.de) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPRGc-0003H5-J4 for pgsql-admin@lists.postgresql.org; Tue, 07 Feb 2023 16:56:32 +0000 Received: from localhost (localhost [127.0.0.1]) by rs.plausibolo.de (Postfix) with ESMTP id DD4173804B9; Tue, 7 Feb 2023 17:56:24 +0100 (CET) Received: from rs.plausibolo.de ([IPv6:::1]) by localhost (h2367442.stratoserver.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id H-OzZO9EUI4n; Tue, 7 Feb 2023 17:56:24 +0100 (CET) Received: from [192.168.0.178] (ip-109-42-177-68.web.vodafone.de [109.42.177.68]) by rs.plausibolo.de (Postfix) with ESMTPSA id 829C438035E; Tue, 7 Feb 2023 17:56:24 +0100 (CET) Message-ID: <8aacabc6-5919-5f37-9c9a-2a3cd67adfa3@jakobs.com> Date: Tue, 7 Feb 2023 17:56:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: pgsql-admin@lists.postgresql.org References: From: Holger Jakobs Subject: Re: Vacuum Full not clean the table In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------1XQa8LkwqzbzW36bhI30RNwp" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------1XQa8LkwqzbzW36bhI30RNwp Content-Type: multipart/mixed; boundary="------------UheWNlWnOVqrvd0CzZRX8Kny"; protected-headers="v1" From: Holger Jakobs To: pgsql-admin@lists.postgresql.org Message-ID: <8aacabc6-5919-5f37-9c9a-2a3cd67adfa3@jakobs.com> Subject: Re: Vacuum Full not clean the table References: In-Reply-To: --------------UheWNlWnOVqrvd0CzZRX8Kny Content-Type: multipart/alternative; boundary="------------q25ty16vW6gV5L7Yba6egP2o" --------------q25ty16vW6gV5L7Yba6egP2o Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 QW0gMDcuMDIuMjMgdW0gMTc6NTEgc2NocmllYiBFcmlrIFNlcnJhbm86DQo+IERlYXIgQWxs LA0KPg0KPiBBbG9uZyB3aXRoIHNheWluZyBoZWxsbywgSSB3b3VsZCBsaWtlIHRvIGNvbnN1 bHQgYWJvdXQgYSBmYWlsdXJlIHRoYXQgDQo+IGlzIGhhcHBlbmluZyB0byBtZSB3aXRoIGEg UEcgOS4yIGJhc2UgYW5kIHdpdGggYSB0YWJsZSB0aGF0IHdlaWdocyANCj4gMTE2R0IgYW5k IGl0cyBpbmRleCAxM0diLCBtb3VudGVkIG9uIGEgTGludXggQ2VudG9zIDcuMiB3aXRoIDRD b3JlIGFuZCANCj4gMzJSYW0uDQo+IFRoZSBmYWlsdXJlIG9jY3VycyBtYWlubHkgaW4gdGhh dCBJIGV4ZWN1dGUgYSBWYWN1dW0gRnVsbCBvbiB0aGUgdGFibGUgDQo+IGFuZCBpdCBlbmRz IGFmdGVyIDYg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MgDQp0aGFuIGEgeWVhci4NCg0KS2luZCBSZWdh cmRzLA0KDQpIb2xnZXINCg0KLS0gDQpIb2xnZXIgSmFrb2JzLCBCZXJnaXNjaCBHbGFkYmFj aCwgVGVsLiArNDktMTc4LTk3NTkwMTINCg0K --------------q25ty16vW6gV5L7Yba6egP2o Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Am 07.02.23 um 17:51 schrieb Erik Serrano:
Dear All,

Along with saying hello, I would like to consult about a failure that is happening to me with a PG 9.2 base and with a table that weighs 116GB and its index 13Gb, mounted on a Linux Centos 7.2 with 4Core and 32Ram.
The failure occurs mainly in that I execute a Vacuum Full on the table and it ends after 6 hours, but it does not clean anything. When checking the dead tuples I realize that they follow the same dirty records in the table. REF: (table of 420MM records with 20MM dead tuples)

I hope you can guide me in finding a solution to clean that table.

Greetings and many thanks to the Postgresql.org community
Atte.


Erik Serrano


Hi Erik,

Does it end cleanly or with an error after 6 hours?

Do you have enough disk space for the vacuum full? The old and the newly written data have to exist at the same time. Only after a successful vacuuming the old data get deleted.

BTW, PG 9.2 has been out of service for quite some time. Only versions 11 to 15 are supported, with the support for version 11 lasting less than a year.

Kind Regards,

Holger

--=20
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
--------------q25ty16vW6gV5L7Yba6egP2o-- --------------UheWNlWnOVqrvd0CzZRX8Kny-- --------------1XQa8LkwqzbzW36bhI30RNwp Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQScuJCxWJK1p5BOebGKV5yTsxlhugUCY+KCtgUDAAAAAAAKCRCKV5yTsxlhurGN AJwNfvXNJ8zXMDVYZVt0keAgQdoqAgCfUBrH776Aqf1stQC/anhKAIopJNk= =A63z -----END PGP SIGNATURE----- --------------1XQa8LkwqzbzW36bhI30RNwp--