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 1hEbFh-0000iU-4M for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 15:04:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEbFf-0001d5-F8 for pgsql-general@arkaria.postgresql.org; Thu, 11 Apr 2019 15:04:31 +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 1hEbFf-0001cy-2P for pgsql-general@lists.postgresql.org; Thu, 11 Apr 2019 15:04:31 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEbFc-00047O-39 for pgsql-general@postgresql.org; Thu, 11 Apr 2019 15:04:29 +0000 Received: by mail-qt1-x842.google.com with SMTP id w5so7394052qtb.11 for ; Thu, 11 Apr 2019 08:04:27 -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=aAFqchAjdo59BYj+Ahv/J266NplBZ4TqTRqSmQE4rT0=; b=jf2dZFdSys4RNQ/5CvBUNfXMcju3j4TW8MNKQuMpJlKqAUsaRPAMTwnR8j2S6NmfbB sik/rD4Yb9rl9O+M5Dc62lKf28BEv0uRmbcazqlCKmM8qp9AXXmqbUYpirkNh+Zgr+1l 3rEoLe7y/nFbBUvTfisoC8wsdqu8pHo0ppT/+yJ983ygeyIbM19fn6pJoM4j2CNdNSkZ prYwIN+NxDWyI8CzQhYfhfZDy0xGZli24Hh5eYJt1BJMHw3cHgs5mGI93ldIaSWTkLTU c2zdRsArvEyQI9uAgJVutEExQHoieT31uD5h03jLvOc/fZhpvgKR0GnuYsgsuT+xwGA9 1A4A== 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=aAFqchAjdo59BYj+Ahv/J266NplBZ4TqTRqSmQE4rT0=; b=tzRqupW2swyg5sch785LmtWjpA+RNF26yYIejdhmKlhPkH8D5JhrexeGlieaM9pZCD C0+e0/xK2hYYC6K1f9lOu4h+ovEl0NbPRGeaOCBbVJX4nMnjBQ1XzL82FymNjyxS5lQ+ d09niNJr58UFkcrX8QpOdU3azRNNnoMOK0jppRHTYIt0gQRQ01z4Vy57ERDhU74sGDyl OM2SJkrOKEHSQ3iupcv0//VeaJKeP1xzhb6qDpWU9O1KigU+WxDAy8XxSUn01vXJXdEq fWd41cHMBjtzjFgc+tZ3Q1YWTNy4vf7oxSEI7GvUhE/yeJoaK4wf+JGP6u6m0UChnjSv RcCA== X-Gm-Message-State: APjAAAWlArkAcjuqaSfaWzfDPpcn+6LmDWW5OdSY+IFXQoff84+e4r/2 DoAZPEcLVj9+q6hd1t8Lbn5mkZOZjI4= X-Google-Smtp-Source: APXvYqwwswSuDt94jROw6BlKgeXEK4rV/EXyDZoOoBVVMPmVrO1pGzUEl1f+JAs187WsDc4rTFSSWQ== X-Received: by 2002:a0c:f903:: with SMTP id v3mr41658489qvn.152.1554995067441; Thu, 11 Apr 2019 08:04:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id w68sm19627921qka.18.2019.04.11.08.04.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 08:04:25 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 53614120FBF; Thu, 11 Apr 2019 11:04:23 -0400 (-04) Date: Thu, 11 Apr 2019 11:04:23 -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: <20190411150423.GA7441@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1691e56f-9070-7426-2e76-5eb468161b60@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: > On 04/11/2019 06:41 PM, Alvaro Herrera wrote: > > > Perhaps it'd be better to vacuum this table much more often. > > > Each run took 5-6 hours, now it takes 2-3 hours after I've tweaked some > cost-based vacuum knobs. But how often does it run? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services