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 1hi1Lq-0001wx-Mc for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 18:48:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hi1Lp-0000AR-Hl for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 18:48:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi1Lo-0008Ee-Uh for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 18:48:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi1Lm-00009w-Nd for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 18:48:27 +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 x61ImPHW025327; Mon, 1 Jul 2019 14:48:25 -0400 From: Tom Lane To: Ron cc: "pgsql-general@lists.postgresql.org" Subject: Re: Statistics tables not being updated anymore In-reply-to: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> Comments: In-reply-to Ron message dated "Mon, 01 Jul 2019 12:27:33 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25325.1562006905.1@sss.pgh.pa.us> Date: Mon, 01 Jul 2019 14:48:25 -0400 Message-ID: <25326.1562006905@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ron writes: > Statistics views like pg_stat_*_tables, pg_stat_*_indexes, > pg_statio_*_tables and pg_statio_*_indexes aren't being updated anymore. > Specifically, all counter fields are 0, and date fields are blank. Does anything show up in the postmaster log when you try to query one of those views? It seems like something must be wedged either in the stats collector process or in backends' communication with that process. Hard to say what on the basis of this evidence though. If you can do a postmaster restart without too much trouble, that might resolve the issue. regards, tom lane