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

From Adrian Klaver
Subject Re: Statistics tables not being updated anymore
Date
Msg-id 83991679-2946-fae2-9e53-47d9fd712132@aklaver.com
Whole thread Raw
In response to Statistics tables not being updated anymore  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: Statistics tables not being updated anymore
List pgsql-general
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?

What shows up in the pg_stats view?

> 
> track_activities                    | on
> track_activity_query_size           | 1024
> track_commit_timestamp              | off
> track_counts                        | on
> track_functions                     | none
> track_io_timing                     | off
> 
> Thanks
> 
> -- 
> Angular momentum makes the world go 'round.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

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