Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRQnt-0003UG-AR for pgsql-performance@arkaria.postgresql.org; Tue, 19 Dec 2017 22:56:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRQns-0006UP-Qn for pgsql-performance@arkaria.postgresql.org; Tue, 19 Dec 2017 22:56:04 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRQns-0006UG-FV for pgsql-performance@lists.postgresql.org; Tue, 19 Dec 2017 22:56:04 +0000 Received: from mail-it0-x22f.google.com ([2607:f8b0:4001:c0b::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eRQnp-0000dh-3G for pgsql-performance@lists.postgresql.org; Tue, 19 Dec 2017 22:56:04 +0000 Received: by mail-it0-x22f.google.com with SMTP id t1so4595795ite.5 for ; Tue, 19 Dec 2017 14:56:00 -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=KSjzSDz+1UAcKfiHYsrZAOAjIFmevMGqsC9D5FWz7cc=; b=rRjrZxu/xUSuyA6oxp6IM3KWklEM6w4zagWh7KskhnB0R0JdK1VcKjinDYxrIyJsCD S7tSDs54Kq32Y4UNCthHxrmvcUcJzHGaumt9L+7uE/bBd3tYdQ6Y2JahvVDxQFG3AxSa gWqjrAdgdOIL+RnFxlVgvgrfWBynb0ol4oL5pGLl4qtbIurlI+PBoDvmww82yDPULTix qI9/QlPguElZ/tHSDmJ41eyAe1/q3L/XGEs6VHkY7vcKa7OSeUVST26TA68m2/u0eMTi gBpu7OtkVyDuNsPwbdcnuWtQktAHNZWUjgCw6IEaZ2OW70m5I4Mht56cJ4nGUXB8CmPq Hiig== 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=KSjzSDz+1UAcKfiHYsrZAOAjIFmevMGqsC9D5FWz7cc=; b=sfbI5Kzssz06CWMCQzKUrG2t+F8whlUzmF2XFJE3UKNTb4oA3Wi5n2Ju1dvOMsF3gf rJUgss+taNJiURPQkhMjeVJd0QxKcuLFeZGiKUqvhefTtXNAWOBNITAWQFOqBhPYS5YL OtEuU3uVp/rcKjIG3qGgRNoJBTSSFIqtOacq0OnYcxQ4wJHhnJtsL7gs3SQ5es6wnW5U mWaOZOr5xK433O3XxrKIVGHikoHWF9A3NkJZsHfeCA2/OeXU3z8nPChzdaDwfmR8UXXK FLcbahgMub+NF4d0hMy/XTrGtMUiTwLNbM/3jf4dhj4MNyKM3gLQuI1IfrYVswOLo8nU d1bA== X-Gm-Message-State: AKGB3mKcgnP2zSuv/ViXJhPsBD1dXwfLc2AL7wl/H3LMf1J06ZbRnBCm 5nxezduxhNgLJP2axZXAWOrsAfh7FcU= X-Google-Smtp-Source: ACJfBosSaco0IS09PNoir+pfl3Zm6L3+hX9rdXWo7Kl1ygQkH4kIPO9SO2cl/NIIcDg2W/qdmwYWZw== X-Received: by 10.36.54.208 with SMTP id l199mr832319itl.90.1513724158560; Tue, 19 Dec 2017 14:55:58 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id 202sm1776551ioz.51.2017.12.19.14.55.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Dec 2017 14:55:58 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 66843801102; Tue, 19 Dec 2017 16:55:57 -0600 (CST) Date: Tue, 19 Dec 2017 16:55:57 -0600 From: Justin Pryzby To: Habib Nahas Cc: pgsql-performance@lists.postgresql.org Subject: Re: Autoanalyze CPU usage Message-ID: <20171219225557.GG18184@telsasoft.com> References: <20171219170958.GF18184@telsasoft.com> 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 Tue, Dec 19, 2017 at 02:37:18PM -0800, Habib Nahas wrote: > As it happens our larger tables operate as a business log and are also > insert only. > > - There is no partitioning at this time since we expect to have an > automated process to delete rows older than a certain date. This is a primary use case for partitioning ; bulk DROP rather than DELETE. > - Analyzing doing off-hours sounds like a good idea; if there is no other > way to determine effect on db we may end up doing that. You can also implement a manual analyze job and hope to avoid autoanalyze. > - We have an open schema and heavily depend on jsonb, so I'm not sure if > increasing the statistics target will be helpful. If the increased stats target isn't useful for that, I would recommend to decrease it. -- Justin Pryzby System Administrator Telsasoft +1-952-707-8581