Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVzq-00085x-5s for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 15:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHVzo-00089d-BK for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 15:31:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVzn-00089V-Vf for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 15:31:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHVzl-000321-KB for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 15:31:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9UFVpM2030799; Tue, 30 Oct 2018 11:31:51 -0400 From: Tom Lane To: Kathleen Emerson cc: pgsql-general@lists.postgresql.org Subject: Re: pg_stat_all_tables.last_vacuum not always correct. In-reply-to: References: Comments: In-reply-to Kathleen Emerson message dated "Tue, 30 Oct 2018 07:57:34 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30797.1540913511.1@sss.pgh.pa.us> Date: Tue, 30 Oct 2018 11:31:51 -0400 Message-ID: <30798.1540913511@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kathleen Emerson writes: > I ran `VACUUM VERBOSE` on 10-28. After the VACUUM completed, I ran the > query > `SELECT relname, last_vacuum FROM pg_stat_all_tables ORDER BY 2;` > [ and saw old timestamps for some ] > So, at least according to the VERBOSE logs, it seems like these tables > _were_ vacuumed. Why the discrepancy? The pg_stats mechanism is designed to drop messages when under sufficient load, so if there was a whole lot going on besides the VACUUM, maybe that would explain it. regards, tom lane