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 1mc9xe-00079o-CP for pgsql-general@arkaria.postgresql.org; Sun, 17 Oct 2021 17:28:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mc9xd-0000Yi-6D for pgsql-general@arkaria.postgresql.org; Sun, 17 Oct 2021 17:28:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mc9xb-0000YZ-3f for pgsql-general@lists.postgresql.org; Sun, 17 Oct 2021 17:28:36 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mc9xU-0004Gf-2a for pgsql-general@lists.postgresql.org; Sun, 17 Oct 2021 17:28:34 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E3B9A5C0083; Sun, 17 Oct 2021 13:28:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 17 Oct 2021 13:28:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=W JSw/1RSuZpaG4S9d4QUOMq6VCu05lRLhmIMx18j8fk=; b=ejcZ3M1q50wBEWph/ dU11rMSHuQfVgjYicT7a9+HY/bf+0qWaGSL1wf2b/jVYKzhPI1o3AOLWloiOBe/X femTVNf+cO6SjwgJgWgfOWTpdFpAYf2bshtpSEA0UOOt2hXlerT+1bEd4AAf6fDb Q76RBGBdP7lw+2eavZonz6RZB/YIK9cjMF3+ydsoHGG5TUDiZ25XEOHx+vWwjX/8 qZM8EZZ1Il6/S7eMMESla6xPOfekLjbV8aI+CoEECHKTcn/+7gHLWb8Jbepdz5q7 fxhWZwXJgX/30BQeeQ2yVBkpxwCrH9c4bG29gNwghPbfjqyk8MgsSEVXcaNiGlxi J6fGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=WJSw/1RSuZpaG4S9d4QUOMq6VCu05lRLhmIMx18j8 fk=; b=bBRc1qZ1ijOqT3mfWVxE9EKXfVYEY+xzA5c2nezmYie2wlkw6pXsTR5Su ITwjfusJsORMWSzAzy4fW2RuUCA64MP2J8Z8KNowekwbd568xHvG/H/Nws3e38Im OxQJ2R26th08GCQ3MYHuTteOeCBS+Mg6xwnTlEhO4m794OL78LWDJXxtqqM+cwwt PpkpJv7+eY5iJBqkhuE5ugCDEyQLvIBa6N1lBTf/cgk2v3mAkOQuztDSiCle/310 iz3MQWZ4lxeTEnCAl7sqKb8bUkxi6qPmGv9BVAAq00Z4cMm6L4nXj3wCpjXDaB6k daKuI51aTj39FX6vr/Sk+sVvQUg3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddukedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepteetvdevjeffiedvuedtgeekvdfhhffhgeffkeek vdehjeffkeevuefgffevgfegnecuffhomhgrihhnpehhrghgrghnuggvrhdrnhgvthdprh gvughpihhllhdqlhhinhhprhhordgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 17 Oct 2021 13:28:25 -0400 (EDT) Message-ID: Date: Sun, 17 Oct 2021 10:28:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: Force re-compression with lz4 Content-Language: en-US To: Magnus Hagander , Florents Tselai Cc: pgsql-general References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/17/21 10:17, Magnus Hagander wrote: > On Sun, Oct 17, 2021 at 5:12 PM Florents Tselai > > wrote: > > Is there a smarter way to do this ? > > > It should be enough to VACUUM FULL the table. (but it has to be VACUUM > FULL, not a regular vacuum). Or CLUSTER. With the proviso that this will require double the existing space, ~670GB, until the operation is completed. > > -- >  Magnus Hagander >  Me: https://www.hagander.net/ >  Work: https://www.redpill-linpro.com/ -- Adrian Klaver adrian.klaver@aklaver.com