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 1h1Zyu-0007Ag-JM for pgsql-performance@arkaria.postgresql.org; Wed, 06 Mar 2019 17:05:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1Zyt-0000Wt-77 for pgsql-performance@arkaria.postgresql.org; Wed, 06 Mar 2019 17:05: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 1h1Zys-0000RE-Nx for pgsql-performance@lists.postgresql.org; Wed, 06 Mar 2019 17:05:22 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Zyp-0005vy-Rs for pgsql-performance@postgresql.org; Wed, 06 Mar 2019 17:05:22 +0000 Received: by mail-io1-xd43.google.com with SMTP id k21so10819832ior.13 for ; Wed, 06 Mar 2019 09:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Q1J9E6LLnVRipY1FyvJkPFhZ8IOkbuNbieqYuqN5czA=; b=Zhx21s5hsiOF0yJY3FWTgJWptW/Cj6CpQ45TkYjOjenyidF3deJlznLebrN1WWxMJH f7JKJqH7oIH0QQcN0lG59Efq39SLuiqjqc4B0dH547BXLRs8RlX+idtnSFdGH9ZgkTNR O7BdF2TWnHhIuVjStr0UQ1gGSbCvmnC7kpBW7ozyTaF8HZpFo3Yai5AFSLgRpjhqlUtv t0sQnaiCP7ZJ1uNSIzzsigC1uVSW7giVlgKX8JBfMsavvoPTkNzHOWUFiHXvZRSH1Bap VuCk7v2ES5uMTXxEW6vk89yw936VtuSixpwXko7xU3ervaLgAUt6PVSYnYulfoX70omc aaKQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Q1J9E6LLnVRipY1FyvJkPFhZ8IOkbuNbieqYuqN5czA=; b=Ro6ZESyDCPxI2MwBWah2veT2GCWSumT61hHV2tN7QbZ9BxMI8Tu7WC1owwekVOwyEe NYrF75uYMpZMDSLMyh0rAl7Uh7TNp/dUl68xvNq4Lgmvbc/yDz/LC15397Owmsj8xrAh cDtY+FE8ZpHxDd/KNTD2oAEMWBhOjmMViFh7bFThmhvLcI1soNPkD9+3wHy48d0Jtow+ nFHZJWZvjJSA48TjFsQhuLan2990rZWY7dM/+QXXS04l25DVx6F2P7ZtLyYU9DfCS9SH YLYAG7mPYG/5SIhYh5rRJfC8oHWROmC1MAl+oEQKVqFLz4p/C6VqSTSPgBXMTlgHd/cs d32w== X-Gm-Message-State: APjAAAW7EDtLw1pSaZHAojyvcgB123/Z3U28KrZzI/57RLCW1LBzZ9Xz /Gp0hgn1Bf8egEiXDH6EnSFYtA== X-Google-Smtp-Source: APXvYqyWWG7YooXwj8vzwZLsozUM1BoiiYJ7a48HK7cwp4n2rh4SxvPcsaKk/3lDDOLJqmjbS/BmOA== X-Received: by 2002:a6b:abc2:: with SMTP id u185mr3894583ioe.145.1551891917088; Wed, 06 Mar 2019 09:05:17 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id u135sm1091844ita.1.2019.03.06.09.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 09:05:16 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id D83FD800BD7; Wed, 6 Mar 2019 11:05:14 -0600 (CST) Date: Wed, 6 Mar 2019 11:05:14 -0600 From: Justin Pryzby To: Mariel Cherkassky Cc: pgsql-performance@postgresql.org Subject: Re: autovacuum just stop vacuuming specific table for 7 hours Message-ID: <20190306170514.GY29584@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Mar 06, 2019 at 06:47:21PM +0200, Mariel Cherkassky wrote: > Those settings helped but the table still grey very much. I wrote a script > that monitored some metadata about the table (pg_stat_all_tables,count(*) > from orig and toasted table). I let the system monitor the table for a week > and I found out the next info : > Autovacuum was running great during the whole week and whenever it reached > 10k records in the toasted table it started vacuuming the table. *However, > The db grew dramatically during a period of 7 hours in a specific day. In > those 7 hours the table contained more then 10k (and kept increasing) but > the autovacuum didnt vacuum the table*. I saw that during those 7 hours > autovacuum didnt run and as a result of that the table grew to its max > size(the current size). Does pg_stat_all_tables show that the table ought to have been vacuumed ? SELECT * FROM pg_stat_sys_tables WHERE relid='pg_toast.pg_toast_123456'::regclass; Compare with relpages, reltuple FROM pg_class What postgres version ? Justin