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 1iZnZ5-0004ui-IK for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2019 03:00:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZnZ4-0007O6-2j for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Nov 2019 03:00:26 +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 1iZnZ3-0007NZ-Pj for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2019 03:00:25 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZnZ0-0005lM-Ud for pgsql-hackers@lists.postgresql.org; Wed, 27 Nov 2019 03:00:25 +0000 Received: by mail-qt1-x841.google.com with SMTP id y39so23860499qty.0 for ; Tue, 26 Nov 2019 19:00:22 -0800 (PST) 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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=KbNF7KexYfBsP8JeWXu1cAbWA1EbTyI5CEScuDBO0fA=; b=zysk3at41C+3jC6sLEqjzsMu4N8yUnwXoUX2lux2aHKMdwcRDUOsmjg9lI/xV4v+3f shhq0/mAxZ3jIxC85nGG0vBuqFBA+8HPxsgjIyepnjrSnMlFw2F4Bu7G5/LUHCfgLaai rf1DPudew+isfZTdpDknKQnHg0lr8CtfpEHlaMc/c67w9dJLPeNAFK7U+Z4ekS0HKrMm 0dmhip0BpMylrDsUnHSKBbNJUIYfUP63PpVmtXOgctXW6OTP6GqMYffJxJUguNoHUtpr +nFEqHId6kdCIXwlgGtVq37h509qE2khrwQmxY2NCFwF9Af7ZlTJWn3N06SQPBfp4JBO RTiQ== 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:content-transfer-encoding :in-reply-to:user-agent; bh=KbNF7KexYfBsP8JeWXu1cAbWA1EbTyI5CEScuDBO0fA=; b=LtijzTAvOKoteWR6zhSQlbxnpzBHkpuqnc4bzP57PkVZABlo8XoJQ4+w1wPh2U6R9Q vIpMvZP8AuaPk9gXfXI1fRjYqzZsI+8ivBUQS9YF/3UPhzBujp6zc/XIp1yrCnxYq/uN 5qfRaN2IIdDInqDGYIfpmrTzOx0EGmR0FEXm2WtSPEeJNK8eMNvORzZxraWko34WDa3D ZAyEKEP+ZSVPsPD4whc+LSR6jZPXCnAT1gRpqI7O8utCCGP0oWSSnrj7u5Ep9ExhXBk8 Ppe5JOFNDFbNaSZXSp2f6+A86pHeop6PYejDjcsSIplQIHupphLzYTkdrfLfLTQvYkBt PV6g== X-Gm-Message-State: APjAAAWtNpjKrQNIcoDtPWv5CZs5tcyrE+hfrt2lpAwiC9II9cKkVqx5 7LyzgCKwICb3c+e4EtZ9zt1qQw== X-Google-Smtp-Source: APXvYqzSTnn/c7nTkf774O2FQ8Mv5dDUCPilNiME3vlUhh62+UxXhxii70sYplyQ6t87dR0lR/drXA== X-Received: by 2002:ac8:73d0:: with SMTP id v16mr21324297qtp.335.1574823621115; Tue, 26 Nov 2019 19:00:21 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.95.19.128]) by smtp.gmail.com with ESMTPSA id r4sm6090778qkd.9.2019.11.26.19.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 19:00:20 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 490CA300A42; Wed, 27 Nov 2019 00:00:14 -0300 (-03) Date: Wed, 27 Nov 2019 00:00:14 -0300 From: Alvaro Herrera To: Amit Langote Cc: Tatsuro Yamada , vignesh C , Pg Hackers Subject: Re: progress report for ANALYZE Message-ID: <20191127030014.GD4161@alvherre.pgsql> References: <20191126122251.GA2848@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Nov-27, Amit Langote wrote: > On Tue, Nov 26, 2019 at 9:22 PM Alvaro Herrera wrote: > > > > On 2019-Nov-26, Tatsuro Yamada wrote: > > > > > > I wonder whether we need the total number of ext stats on > > > > pg_stat_progress_analyze or not. As you might know, there is the same > > > > counter on pg_stat_progress_vacuum and pg_stat_progress_cluster. > > > > For example, index_vacuum_count and index_rebuild_count. > > > > > > Would it be better to add the total number column to these views? :) > > > > Yeah, I think it would be good to add that. > > Hmm, does it take that long to calculate ext stats on one column? The > reason it's worthwhile to have index_vacuum_count, > index_rebuild_count, etc. is because it can take very long for one > index to get vacuumed/rebuilt. Yes, it's noticeable. It's not as long as building an index, of course, but it's a long enough fraction of the total analyze time that it should be reported. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services