Re: Statistics tables not being updated anymore - Mailing list pgsql-general

From Ron
Subject Re: Statistics tables not being updated anymore
Date
Msg-id ab61efcd-58bb-674a-2b6d-b9fac0314550@gmail.com
Whole thread Raw
In response to Re: Statistics tables not being updated anymore  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
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.



pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Statistics tables not being updated anymore
Next
From: Adrian Klaver
Date:
Subject: Re: Statistics tables not being updated anymore