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 1sbIGq-00FUoa-0P for pgsql-admin@arkaria.postgresql.org; Tue, 06 Aug 2024 11:22:27 +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 1sbIGo-00EYjK-Jd for pgsql-admin@arkaria.postgresql.org; Tue, 06 Aug 2024 11:22:26 +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 1sbIGo-00EYcb-6b for pgsql-admin@lists.postgresql.org; Tue, 06 Aug 2024 11:22:26 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sbIGl-003Mxx-Oe for pgsql-admin@lists.postgresql.org; Tue, 06 Aug 2024 11:22:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=ciZcnC0SZisoKPhB39GYM/E9p11IgB6zTOB3q3nn3+o=; b=immm2oS/LKNSL/HRqBhiUoxxiv nsipHioWUr3IBwqjNPeKrOeau5rkzmGlj7HotY4M+dzJRcSpm1JJiQC6ebjKcbVKOad1RGeJcbJB+ Y/8P9ZjA2wOx8vR4XEpnaQdHyi/9YSTbiUDOjcVr1W5PmGC/MBTlHXtkyNOAapoAlmXI=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1sbIGj-00DDve-1X; Tue, 06 Aug 2024 13:22:21 +0200 Date: Tue, 6 Aug 2024 13:22:21 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Sathish Reddy Cc: pgsql-admin@lists.postgresql.org Subject: Re: Pg_repack Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Aug 06, 2024 at 04:50:33PM +0530, Sathish Reddy wrote: > Thanks for the information.please provide me solution on clearing bloating > on table or index bloating with out blocking any user and we are not run > any vaccum full .freeze, and reindex and also analized ...with out these > provide me perfect solution to run and remove bloat instance level with in > postgres.. 1. Configure autovacuum properly, so the problem doesn't happen. 2. If need is - run manual vacuum 3. If you really have to, run pg_repack - but this is not a thing that one calls *from within pg* - you run it on some server/computer/whatever, and pg_repack connects to database, and does its magic. Best regards, depesz