Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpTf2-006BsU-Ef for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 14:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tpTf1-00H4ih-49 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 14:54:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpTf0-00H4iY-Qm for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 14:54:18 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpTez-000vWJ-08 for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 14:54:17 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3cfe17f75dfso53769525ab.2 for ; Tue, 04 Mar 2025 06:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741100056; x=1741704856; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0ZzMnTDwTy9kjj5pdj+OjUYD3fL9a0HbeWt+KDKARhA=; b=TRZQWtdkdXNZO50VTVq7UZcNB38NatzXmZ3OydiXZR6GnJGS94JGxs8fUCfQeuUtAY fUQy2yjNKSyXgP2G5nKg4b9GJ71n1KmSL64+1+Oac+8vrYuS266kJytg+RH1c0qwvpTw AGZ/fE5DcL3Qzl8+g1RhAKDpEbYeFC6r1QbdJ8TB+7ynJMmlpFR/MiNAVVqUaZ9h1WQ/ EVScUp/Jeseq3OtrexS1dltfJSxZM0FKrefRJKGb1Rj/0wpHAidyXbMz+2g/uc+FaAxs XXr+Vk5DZS/jRenKQdhbtIziO28JNNsOT1fwO3LrGqEB2tUw32Lef9cgsLca/5TtHTvk ithQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741100056; x=1741704856; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0ZzMnTDwTy9kjj5pdj+OjUYD3fL9a0HbeWt+KDKARhA=; b=tB8YnY8q4HsFagVwDwigkHGuIRgOtHGl5I17oQ0cLq2n4wgtKRAl4XBIVoE4aExof5 8hZfZ3uoPGFvbJCJ9duDhhOxbhl+qr6OILs7/kh4bes0s7eqMZniqUXPrmdHC8n2rMZ8 J5Lx1zERC5HwXwn+JCHERvbvht8EPPhgnfnk0QqzBy0u0p4Y+2VfBUTuVjJx12Ax8q4w ZP4F7G76yfdNBNC5eVsAcOtQH7d71ccPBCVvJCiOtdRg204X6nI82A5aQwgwpNjSmdES lNsgow7PDw78SjFBnEMkPS2qB4GiT2Ror4UKsHKTg5tJoJUM2zBty0eH5xsOemsvLAPx SpJQ== X-Gm-Message-State: AOJu0Yy6a9Ju5V70FK+CHzmS0hqcHN7hFmSzXVDKRjAH4yPcNwfoLjmf A4JKTJ95Qr5ozRVJJkuwv1DHZuvxE5Ts7vY+MXS9YoOIGYWjM1XV X-Gm-Gg: ASbGncupkUaVeeCFHfgvHpxZkDGtDazI4tHgLN7n6VOsKmsTZhDGo4j4BxkUA5ZBwux xiZKJ9n4+HtLQ42UqSoNP87ALy2QDbW5a/YN/a2xHtbFXvHd0jHeJa5Iz6qt/PF32vvSaVcudUU czS2eZyUN+4EZI8HND8CiYRkatZw1prxW2crrmkRO+1mILSplXiKl/4SrHlFnWVZ4bWaz/4xeLu 8eh8KTahGMB65xmf8BWoL4oCfGl9dixajD5tPMXL+b9JtjVUsyM/Wm2GD2O3jpvRdC2piwUzgH1 YOoDg3Leml4EXAPpZrno8A0NfIrSAJLd1yiDxXtMcA0YOobaAOCO7AbHwYMqrpskL0Qs/h5/CZq BE0RjzfZe4p+ok133LnAZgeKSMhgJbJI7s48= X-Google-Smtp-Source: AGHT+IErh4a7RlZVpgoZsMkB+diLH46OInOMMIJFJqVoi88oGlCetDvRcbFs9NZjdWR53jX6tJ04OA== X-Received: by 2002:a92:cda1:0:b0:3d3:cfac:ce2d with SMTP id e9e14a558f8ab-3d3e6fb07d6mr184525985ab.21.1741100056533; Tue, 04 Mar 2025 06:54:16 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3d3dee70e22sm31175885ab.33.2025.03.04.06.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 06:54:15 -0800 (PST) Date: Tue, 4 Mar 2025 08:54:13 -0600 From: Nathan Bossart To: Magnus Hagander Cc: PostgreSQL Developers , Michael Paquier , "Drouvot, Bertrand" , "Imseih (AWS), Sami" Subject: Re: Vacuum timing in pg_stat_all_tables Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 04, 2025 at 03:12:18PM +0100, Magnus Hagander wrote: > In light of bb8dff9995f (add cost delay time to progress views), looking at > the output of 30a6ed0ce4b (track per-relation time spent on vacuum and > analyze), it struck me as a bit unclear of what the time is really showing. > > Do we want to do something similar for the table views? Or if not, we > should probably at least document the effect of cost based vacuum delay on > those timings - as in if they are including it or not (which I do believe > they are). I could see it being useful to have the total cost delay time in those views. The information in the progress views goes away when vacuuming is done, while the table views would retain it indefinitely. That being said, I haven't judged the feasibility of adding it. I'm sure it can be done, but I don't know whether it requires reworking commit bb8dff9995f. > While more stats are always nice :), I think just being clear about it in > the docs would perhaps be enough for now? Maybe just appending something > along the line of "(including cost based delaying)"? I think this is also a reasonable thing to do regardless of whether we add the cost delay time to the table views. -- nathan