pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Statistics tables not being updated anymore
Date: Tue, 02 Jul 2019 09:39:58 +0200
Message-ID: <af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at> (raw)
In-Reply-To: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com>
References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com>

Ron wrote:
> 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?
> 
> track_activities                    | on            
> track_activity_query_size           | 1024          
> track_commit_timestamp              | off           
> track_counts                        | on            
> track_functions                     | none          
> track_io_timing                     | off           

I have seen something like that before, and described the incident in
https://www.cybertec-postgresql.com/en/stale-statistics-cause-table-bloat/

What happened there was that during system startup, PostgreSQL was started
and created the statistics collector UDP socket on IPv6 localhost.

Later in the boot sequence, IPv6 was disabled, so no more statistics
could be collected.  Since it is an UDP socket, there were no errors.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (17+ messages)  latest in thread

Message-ID: <af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at>
Permalink:  ../af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at/
Also on:    postgresql.org/message-id/af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, ronljohnsonjr@gmail.com
  Subject: Re: Statistics tables not being updated anymore
  In-Reply-To: <af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at>
  References: <4939085b-d994-4d35-ce15-f14d6257e64a@gmail.com> <af9b14b44ddfd52035691f510883f6ed403d24b6.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox