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 1hi25y-0004Go-8d for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 19:36:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hi25w-0001V2-Qp for pgsql-general@arkaria.postgresql.org; Mon, 01 Jul 2019 19:36:08 +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 1hi25w-0001U1-Ex for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 19:36:08 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hi25r-00021K-Di for pgsql-general@lists.postgresql.org; Mon, 01 Jul 2019 19:36:08 +0000 Received: by mail-oi1-x241.google.com with SMTP id 65so10916644oid.13 for ; Mon, 01 Jul 2019 12:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=7VfwSpJ/dBOX+A9lCdVbE9Nm3Q4cThasftW71peuKqM=; b=IJsu/Tn67CR3oj5pelbzf+JoUkOgrHPToSOd3kqiD457T4dWOVeZO/vnzSlqqZr1zH jh27hKpLmiQdSswykgJeX01pKYp8SQhgRa9shYNITQFLd3ZKK7WJrM2VpFrzSQalyoMz F1b1I1WW0yvRgIbyvqEgyGEHfj60Vk0N0f6scoEPz+LXdq4s9hvTPGNEWglsk5UWGTKl kMLPlG+Qd4zevTGYgfPRSdFjlhXKgzlH53T6l3nYcbOjuPbKL7e30wl46Zp1cw+4sZSl gACGLxAjIF/N53V/+vzAf70AmUtmnUHwRh3LIMrZWeoumPjRXV5s9QxqMe9lWL35HRx4 VzRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=7VfwSpJ/dBOX+A9lCdVbE9Nm3Q4cThasftW71peuKqM=; b=q/jDJJEu+t9WTg5ATd2PrSS9o3wq8pEkzbEDFjfBYf78AC2D0kiWnk+DIZ3IOolys6 kEsBQRukq6GWCc7qJEo/hFFiHYhHop/l52vnNQ4T1rCTmizkVlFiA+B3Dq8rPrpKfc8k MRDTEWRmG5U3DXjY5RlKWVMyYxl1T16AOXzdgLecXb25MIjkKNQ9/gxiuD3sTLwdMlP9 PUJdicQgDZ7zLfhWTBn3GzaMYwMTNJUo2TA6BTgK8CKq3dzN0/ZvBG63k987u6++7VeL 3aCtQFg16YHja9GWcgg0W6nA1gdpeWVj94snx+dYHjRy18tqNUsjt6N0yp12DPJEvFhw n3jA== X-Gm-Message-State: APjAAAVQ7WJHxEZ796ZboLFi74W5ar+rsQrZu1pXqtKWpEiQXhTZfDFR biTiDUzSyJOD79YzA84eRCNBLudxhYA= X-Google-Smtp-Source: APXvYqztbPRuWrIgKn1gYtRrmicfJ4GWg8hzyOXm0UP0pK7Wc/pIwgsTQ4cqCEEoicgS4nC45YqXzg== X-Received: by 2002:aca:bc02:: with SMTP id m2mr643703oif.139.1562009761240; Mon, 01 Jul 2019 12:36:01 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id l12sm4138980otp.74.2019.07.01.12.36.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2019 12:36:00 -0700 (PDT) Subject: Re: Statistics tables not being updated anymore To: "pgsql-general@lists.postgresql.org" References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> <83991679-2946-fae2-9e53-47d9fd712132@aklaver.com> From: Ron Message-ID: Date: Mon, 1 Jul 2019 14:35:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/1/19 1:48 PM, Adrian Klaver wrote: > On 7/1/19 11:24 AM, Ron wrote: >> On 7/1/19 1:07 PM, Adrian Klaver wrote: >>> On 7/1/19 10:27 AM, Ron wrote: >>>> Hi. >>>> >>>> v9.6.9 >>>> >>>> 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. >>>> >>>> The first thing I checked was postgresql.conf (but it hasn't been >>>> modified since December 2018), and track_activities is turned on. Also, >>>> I connect as user "postgres", so it's not a privileges problem. >>>> >>>> Where else should I look? >>> >>> Is it an autovacuum problem? >>> >>> What happens if you do a manual ANALYZE? >> >> We run manual ANALYZE jobs every day, and still the columns are blank and >> zero, >> >>> >>> What shows up in the pg_stats view? >> >> Only the pg_catalog tables have values in, for example, >> elem_count_histogram. > > Suggestions: > > 1) For starters I would go back to the source pg_statistic and see if the > values actually change. I don't see any values in it, either. > > 2) Make sure that some code is not issuing a SET that is overriding the > postgresql.conf settings. Or that someone has not changed an include file. None. > > 3) Look at pg_stat_activity to see if there is actually any activity > recorded. We do see that being updated. -- Angular momentum makes the world go 'round.