Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ir4Zh-00051s-7T for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2020 18:36:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ir4Ze-0003Ep-FJ for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2020 18:36:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ir4Zc-0003Ei-54 for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2020 18:36:26 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ir4ZY-0000hG-CM for pgsql-general@postgresql.org; Mon, 13 Jan 2020 18:36:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EAC0E21B82; Mon, 13 Jan 2020 13:36:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 13 Jan 2020 13:36:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=B 3G7s4Xc2PirPU0p+WNoXdbM1a7jj5XViOX07SK/CbY=; b=WF2NGWlQrYZrxEIcJ VE11/DZVy/gjtiCZdV5SGpqZ9BXkJWgKO0PJ0k6kjkO/ui9c0lOtM7txYqE1SRWL 65rfUoAySwN2p4v0g0IVxkvfFpRs+oS1mIoRFp0InNDCx4/GbGGrjLIVeFohtrv9 7yOrLjU6cD9OV6bNkWWsKjecf1zGLJMvLNpD0KBeYDTKEsfOMQB0Y3B3fX8VWkMd pVN6JgSmg1TchIz3NdyXeiVI6yf+IhMPY92hrFcaxkFU6E+G3QtvFSJHqIpCJUrD kRZ3kXg3iR640gRyuIo7RADs/4gG3A4rWHAlVU3Gu8KyXYPOaVdEsUg1qeUHsFJV vc7zA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=B3G7s4Xc2PirPU0p+WNoXdbM1a7jj5XViOX07SK/C bY=; b=dEVXH2RPbWj32/5PCVzdByaUfJI1WeFgY8LcIOVcSS7tjpAliqADANeDi 2pzFe99NlFwLZWnCQx2O6qqAzun3XZqm3xSYJzoKy7jv/S5sxKOnZsAIoUZ5N3Uf jMXkIQvwQCDbKSMSdDBDlZUvaAEXtIjZrUGyOLT5kjtGwH/9j7RzH4HnAKTJgEu7 lopg7R1+vqeoL/BYjeYKrfj9GAa1zDqM4MkYOnmWwpYl2zI8AHfumAPYNPMTU+eL TlDGb2RVIxpL5Rvzd9VzFM9i5P+9yJAQ6Rq0b7j2XVe7TkslFNXuAoOq0Cuhrq4z nb7h3M8NXmif1HHXFdNMeUhv0qT9A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdejtddgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduvdelrd duleefnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C68430602DB; Mon, 13 Jan 2020 13:36:18 -0500 (EST) Subject: Re: pg_repack in cluster To: dagamier , pgsql-general@postgresql.org References: <1578679285883-0.post@n3.nabble.com> <1578930066934-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.com> Date: Mon, 13 Jan 2020 10:36:17 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <1578930066934-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/13/20 7:41 AM, dagamier wrote: > Can't afford the downtime of a "vaccuum full" and the autovacuum process is > not cleaning up all the dead space tied up by the database. pg_repack works > great on my test database in reclaiming disk space (in my tests I got back > 46% of my disk space back) due to all the deletions that happen in our > tables. I think that some of the issues are the fact that some of these > tables are quite large and won't allow for an autovacuum to clean up as well > as it should. pg_repack allows me to essentially do a "vacuum full" in > online mode (I thought I read it also rebuilds the indexes as well) and this > would greatly increase our overall performance on our systems. I believe more information is needed to come up with an answer: 1) What version of Postgres? 2) What replication are you using logical or binary? 3) Is the space tied up needed by the OS or other programs? Otherwise VACUUM will mark it as reusable by the database. 4) What are the size of the tables and the deletion churn rate? -- Adrian Klaver adrian.klaver@aklaver.com