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 1hEaOi-0006ot-Gu for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 14:09:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEaOg-0000rs-Le for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 14:09:46 +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 1hEaOg-0000mI-8M for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 14:09:46 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEaOd-0006XV-5y for pgsql-general@postgresql.org; Thu, 11 Apr 2019 14:09:45 +0000 Received: by mail-qk1-x741.google.com with SMTP id b74so3502458qkg.9 for ; Thu, 11 Apr 2019 07:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=OrNGlM2HPHxFYtyEIuMMXAEfNpxoestp16jen1lPIO8=; b=JuDy1JMqVoQPv3YM275aHWW2BUluRXxjA7gKsJlXxWsyrwH1II6Gp8IFdhZO46G80n uDS1xRcRADaf1hkcoA/+mKvmm6mXPXdanG9IlNiggi+cI0YqEkSU+VpjE90nkh9i+sRp p4o2q5qjfVerlih+lbEDAk+IrQfESGHFVbENUKk0+1krsJB2tfqHsoG8a4C25egi0Rna 8ByRWTSnjhOhs5+RPWacxGOtGiWAkPLnLmhttEawg+EIg3NRoIOY18JoS/sLwioTPtfe pGNTAgnZTotO+rzuNelgHAoaFwrTuy76YDIsXd2g1eHP/nDG2Q2zHOnasxU+i6CxAXfd NAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OrNGlM2HPHxFYtyEIuMMXAEfNpxoestp16jen1lPIO8=; b=k5OiEF1xxKcALig/g3V9V2MtRqb5yGhytPrEEVZyI587vN125bHD1nspKm6T+cqAuC Y/PS8uVlXMPoBhxTa2wL6HG6JXaKP3r96PbxKcqOu2tO+2faLHd3lOlJ3vHbabJO33Ug RI4Xd3mzrRcRzEIVw9dnRksv3yZLwFr9F8XSeXv7taM2ozhYPbgyE1Kcvczqq2Lwn+Tg ov6GzAtT6W3sBlADrAodMZmFTln9LrJmBr/WufbWeHSSm5zFBlcPot/xaVN4uFBdE7vb BlYUBmoh2JjYLdEzWlth9K1Bww9nRdXKF+mIGbI6tkzoH+6oeD1oxaZKMSqeuxiG3FMu zAGw== X-Gm-Message-State: APjAAAVYWsetnKuq4S//Z/CY54DDRMcdr4cwa9bgmIIqHCNUtHxcUSX8 nLFjIrECQCXC7SbesKfbcbeRXxIbFUg= X-Google-Smtp-Source: APXvYqyrmJ6jCB75sH3NT6BRr8JHPtyyEmNLWZgEMVlhTSQgP3b2N+gI1aslLVe6tqoujESPttpCkw== X-Received: by 2002:a37:9ac3:: with SMTP id c186mr37841022qke.117.1554991781412; Thu, 11 Apr 2019 07:09:41 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id r15sm26626400qtb.22.2019.04.11.07.09.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 07:09:40 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id DF2E7120FBE; Thu, 11 Apr 2019 10:09:38 -0400 (-04) Date: Thu, 11 Apr 2019 10:09:38 -0400 From: Alvaro Herrera To: rihad Cc: Tom Lane , pgsql-general General Subject: Re: When do vacuumed pages/tuples become available for reuse? Message-ID: <20190411140938.GA22402@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0522481c-4cf6-1928-8780-9bfa2d7c6aca@mail.ru> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-11, rihad wrote: > Thanks! Our autovacuum_work_mem = 1GB, so this probably means any space > would be available for reuse only at the end of the vacuum? Are there any > downsides in decreasing it to, say, 64MB? I see only pluses ) Yes, each vacuum will take longer and will use much more I/O. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services