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 1gkBkq-00079M-Fe for pgsql-performance@arkaria.postgresql.org; Thu, 17 Jan 2019 17:47:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkBkp-0003u3-9q for pgsql-performance@arkaria.postgresql.org; Thu, 17 Jan 2019 17:46:59 +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 1gkBko-0003rn-S7 for pgsql-performance@lists.postgresql.org; Thu, 17 Jan 2019 17:46:59 +0000 Received: from mail-it1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkBkm-0004RG-30 for pgsql-performance@lists.postgresql.org; Thu, 17 Jan 2019 17:46:57 +0000 Received: by mail-it1-x131.google.com with SMTP id b5so2294558iti.2 for ; Thu, 17 Jan 2019 09:46:55 -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=Pbne+uBuCm3Xk7IbhT8BiXZKu3ZI2OPCYQIIYVoGZ/c=; b=x9qbPHgXabua6aWTAyhlfY4hPKaAGQ1vYMrVlOMKsE5+DL1+0v7prudLDopmP3nNj5 dItV6l/lew74iUc+Hk/dHAowI3w/ml9zpElU/fKDISm12ZFjM4+tjrxh2P3l7CkKlVry bsiFSI9sdFfmBhtzh38uiQgHnod3yEnhTp8/bRnHZpPek2FIbRh/wjRXAqzPS64FPaK8 cXbWdTu8eVzZBDv/uh7X3uFESF1mDrJxQ2PEuTqm6c6angj8mKRKg0/VF1jjAN70or0O J18rpAqqNenCWJT/nhRrBm2RuqQcfIHhhWF4t84yOsmuFb3+Z+P58XJlL79RqoceeDbX MFBQ== 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=Pbne+uBuCm3Xk7IbhT8BiXZKu3ZI2OPCYQIIYVoGZ/c=; b=tHpQxW9f7XQovw8S8qcgtLcMQmDgq6kuyV5VSMuNuI6zuXGTkaUsEymP+n9Y2KNzwD cWFfqDA5bT9ccq8KEwjO0mWnoT8pEKAOFsk2/caMQ4rQzMsTE+FIMndGXKx6r+ABIUEy L8czQopap++7d4QYsG4B29nkOSL7zwkdmsRo7vhjbU8GmURCFiedvneNQ+9XvQmyi13D xyetM6BGAgl8c6U89egcarDCKKadaotPvR3dgdsEQP2GuNkZI1l1miKr3H9M0frZ4z2U ygbW1fZij7IsCNpVjfNAn7qukFd9oKUPLjR82a4YyeFdywJFgAwL8kw/GBKaVOkouPto er9A== X-Gm-Message-State: AJcUukeLisgZuYcw5ftYDW7r2x24TSmO5X9nN2KvAvG4W5cp612CTUwk GOBLczGQBY0GFQNNxAjxP4JC5g== X-Google-Smtp-Source: ALg8bN6++5KrzEOkhvCHLYLESnM3ZhRGsWyx7lNJp4V8JQfj/MrTILOLh8oRddQyPDOj+hNfDhICRw== X-Received: by 2002:a02:a003:: with SMTP id a3mr9185493jah.8.1547747215255; Thu, 17 Jan 2019 09:46:55 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id i135sm953953iti.34.2019.01.17.09.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 09:46:54 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 12A01800FBC; Thu, 17 Jan 2019 11:46:51 -0600 (CST) Date: Thu, 17 Jan 2019 11:46:51 -0600 From: Justin Pryzby To: Mariel Cherkassky Cc: pgsql-performance@lists.postgresql.org Subject: Re: autovacuum doesnt run on the pg_toast_id table Message-ID: <20190117174651.GC18438@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 Thu, Jan 17, 2019 at 07:28:52PM +0200, Mariel Cherkassky wrote: ... > Now, I realized from the autovacuum > logging, that when autovacuum runs on the original table (A) it doesn't > necessary run on the toasted table and this is very weird. ... > Any idea why the autovacuum doesnt vacuum both tables ? It *does* vacuum both, just not *necessarily*, as you saw. The toast is a separate table, so it's tracked separately. Note that: |If a table parameter value is set and the |equivalent toast. parameter is not, the TOAST table |will use the table's parameter value. You could look in pg_stat_all_tables, to see how frequently the toast is being autovacuumed relative to its table. Justin