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.96) (envelope-from ) id 1w5Rmn-003G7y-3B for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 17:12:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5Rml-00FNZU-2C for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 17:12:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5Rml-00FNZM-1F for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 17:12:51 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5Rmj-000000016Wg-0D8b for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 17:12:51 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-65c0891f4e9so43388a12.1 for ; Wed, 25 Mar 2026 10:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774458768; cv=none; d=google.com; s=arc-20240605; b=E7Oz7VRO6Mxwz8FacR1+Ah7XczU88GNRSU4AgtWZ179pQ6wgBF4S4he9h1NZ/CkXmk qOHs4S8y3WoYKuaT0V7RIN7IwQkuN4bUXhe0sImg8LJJnF3XnMtnRuLHrqnSCVBp5bCg TJlDYDHMfF0gH1P2IQ+ROphyIWW2FCfMRVfLZ5PefzO+h3EnT7+1m9URT/ZQ4f2R7PZ3 Rtzpr120+bD0XrGmrbQpqpjutGgVhb7fhsWM6/eLHK2XpOKroawn/dwUZP6M9Bhw3CB5 0f1Kk3muq1XSSiP+SFpIdg1g0f/UnKkwF8AbmiI4wKV3HPggJvXT1We3SD3PjYS7AGw5 5g4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=2+bBSECz3ykwcM04GGUAj+yRSNQJYtViitwhkP0B6Wg=; fh=F/qfymi0ljKQSgNxsA4imUsIYzu760GKWaDEoAQVVM8=; b=e6oQP3GYnz2TcAFoFaky7uBGy86V7QENYXwIi9D4Te3rChsFfn5BL7s1Y2FSTAcAHI sAIslcEvkIO9txHUeUUflcNi4xiSd1Sq1NcOIvPM/IwTuiraBkq/uw2DIQy++gEaCA5Y hIAEKjfspoINVCKJe0ZDdz1uo4s5Ry6qyj8spiF0/JhgErIO7muORgjEtOOYfMTnDnfZ Pix6Ht3+efMhSqVeBiITeBqW7+7QRqWpydCcYAlpJOmLop8UIR5dkCVz9TI4rK8oWI6m 0DtM0hZCVC68to/SZmb84vYRaw6uL2P3UvwZ/9zCy0l0XteIKABqg/UojW5XvtOZGEh/ maVw==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774458768; x=1775063568; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2+bBSECz3ykwcM04GGUAj+yRSNQJYtViitwhkP0B6Wg=; b=Ljd9roIAc+xBvowHFspcCngP9gnvEQ4J+yJrAoOOCvrzn+qe1OgFh3getuMLoyEdMz H2E4mfhc2uWqNOP/wWC2cfMwPpjaNPqSVrNQvKd5FNY2jQ21m7ljXJCin8hpDozuZucj Vzj90U97//GoImfKIxOtYw5nZU77RKjGausuE0aDRV790VjSG+vcsc7VrF3px6Vpo78l 2lCPJhb+2cTUlUViSuXVeIiTdCyMfzF1Sc7C4hiEYVfQSuuWkJY/nsqF5+/KjI9JB/Fo BfUSJfdio9tlD4b4LEguk5xDIAtTJjDgDAhqf1/WM+MPQhIsgfJGVoVgkOu+VGZLDtF4 CjmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774458768; x=1775063568; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2+bBSECz3ykwcM04GGUAj+yRSNQJYtViitwhkP0B6Wg=; b=DWtxGEZELHVdvV4AcOPkRqju0hc/KmEd/ZlQELTHPQbH8Eh+3UxrvZalF+PSMBOlo/ soGcVZQ7hyIj+QrDDX7uqz0iRuXERMdj4xarWl+7+RiU8uX5JbT0wtdOWv50B0YI41Re qNo9nO0s6vW3f5M2hW0Pila+IvpjfScAoYz/K1PATGYcvkuakv2bqqKSsTyCcY+T2wym 36bkDgZXHsiuAtniPa2x/rcjmve0RxRIulkwxKj7Zj/wJfoNMGc57jWhpIKjOEAf/ejn RFzCUq0iYlQLrRzj7GMOiwjqqSpRdyZUExVtVgAPOzPIRRhYL0Zv92WHSw9amRAX/96m 3WJw== X-Forwarded-Encrypted: i=1; AJvYcCVyk5dcfp/b4lqZBmO5xAwu8EnBLg3epzy8m1fiBlaHVQso7lvWIAmtJFIQR/fBQ+tNrshaKnENDYe4KwtL@postgresql.org X-Gm-Message-State: AOJu0Yz4PTxFe/yqaI2MJH6pOIZYOik0WI6rRmvn5zi8UnPCZa9oaQBd xMJB7kIKyO0rXHXY6M/y1tMSnGMl3phmT00w+3J6unWzOY+LL97Hbpu8cn6NuPSXuSfNmQAmrkn h9glvgBTeV2fX79KA6HE+u+EEgMzAO9I= X-Gm-Gg: ATEYQzyAFSIltTqk/qsrPAThrHxwgtK1VrMOQKBJpe536+jLHIR+csyk0nzNlwg9NFy zzIuSefVOjR0+vmB0nIdVIosxbo4p1PwK+fDp8xCrx6St4z/PikjDV6VJ3lEv5fL0JtCEeuzu20 XMz+F9TF0Rxp5WxfYtsY1acjtY+fhtE0IvXoxOHWFhzdwysVG9DHQ/tTFGiltdGc5Al+7RfRztR lwD5FA5Ex0qu8Ig25BW916t2GsW5P+mfzr2fWy/1Hwj0tNanIjSTH/y/z5nvtcLR16DCUuXPKfC jVGvJg== X-Received: by 2002:a05:6402:4389:b0:66a:11c9:f6bb with SMTP id 4fb4d7f45d1cf-66a826dedb6mr2765408a12.29.1774458767902; Wed, 25 Mar 2026 10:12:47 -0700 (PDT) MIME-Version: 1.0 References: <20260324151133.7940a5c1f2ebd594d54da481@sraoss.co.jp> <20260325012847.e026ba1860c07288efe3e97d@sraoss.co.jp> <20260325132451.807ebb159f3b11e88ad4ecc0@sraoss.co.jp> In-Reply-To: <20260325132451.807ebb159f3b11e88ad4ecc0@sraoss.co.jp> From: Sami Imseih Date: Wed, 25 Mar 2026 12:12:35 -0500 X-Gm-Features: AQROBzCkRntYz2RC6O3q7VCFUPfRKEV8gukhKA5vlRISj_Qd_b7rIii6_18eQ3A Message-ID: Subject: Re: Track skipped tables during autovacuum and autoanalyze To: Yugo Nagata Cc: Michael Paquier , Pgsql Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > On Wed, Mar 25, 2026 at 01:28:47AM +0900, Yugo Nagata wrote: > > > Although the timestamps are overwritten on each skipped autovacuum or > > > autoanalyze, they still indicate when the last attempt was made. This > > > can help users confirm that autovacuum is actively attempting to run, > > > and that the issue is due to repeated skips rather than inactivity. > > > > > > While counters can indicate overall activity, they do not reveal when > > > the last skip occurred. With timestamps, users can immediately see the > > > most recent attempt, even without a separate dashboard or historical > > > tracking. > > > > > > Therefore, counters are useful for monitoring overall activity, but > > > timestamps give additional, complementary information, so it seems > > > worthwhile to include them too. > > > > Hmm.. I can buy this argument for the timestamps, especially for > > database with many relations of various sizes that could take a > > various amount of time to process. The timestamps could offer hints > > about the time it takes between the skips, even if snapshots of the > > stats data are not taken at a very aggressive frequency. I'm fine with adding timestamps, as there seem to be convincing reasons to add them. My other concern is bloat of the pg_stat_all_tables view. This patch adds 4 columns, or 8 if we also include manual vacuum and analyze (which I think we should). Given that, should we also start thinking about splitting the vacuum activity related columns into a dedicated view and out of pg_stat_all_tables for v20? -- Sami Imseih Amazon Web Services (AWS)