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 1hEaYz-0007FY-Sy for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 14:20:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEaYx-0000su-Dn for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 14:20:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEaYx-0000sn-4K for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 14:20:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEaYu-0006rJ-Ji for pgsql-general@postgresql.org; Thu, 11 Apr 2019 14:20:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3BEKFuE009915; Thu, 11 Apr 2019 10:20:15 -0400 From: Tom Lane To: rihad cc: pgsql-general General Subject: Re: When do vacuumed pages/tuples become available for reuse? In-reply-to: <0522481c-4cf6-1928-8780-9bfa2d7c6aca@mail.ru> References: <9cd73fcb-511d-ede9-6789-209b7d4eb193@mail.ru> <8560.1554990486@sss.pgh.pa.us> <0522481c-4cf6-1928-8780-9bfa2d7c6aca@mail.ru> Comments: In-reply-to rihad message dated "Thu, 11 Apr 2019 18:01:23 +0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9913.1554992415.1@sss.pgh.pa.us> Date: Thu, 11 Apr 2019 10:20:15 -0400 Message-ID: <9914.1554992415@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk rihad writes: > Thanks! Our autovacuum_work_mem = 1GB, so this probably means any space > would be available for reuse only at the end of the vacuum? It's six bytes per dead tuple, last I checked ... you do the math. > Are there > any downsides in decreasing it to, say, 64MB? I see only pluses ) Well, usually people prefer to minimize the number of passes over the indexes. regards, tom lane