What is pg_stat_user_tables Showing NULL for last_autoanalyze & last_autovacuum

From: Fd Habash <fmhabash(at)gmail(dot)com>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: What is pg_stat_user_tables Showing NULL for last_autoanalyze & last_autovacuum
Date: 2019-02-27 14:47:13
Message-ID: 5c76a2f0.1c69fb81.a4b54.6182@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I have been able to locate four google search results with the same inquiry. What’ve been able to understand is …

1. If auto-vaccum is working as expected, stats collector does not nullify these values as part of a startup sequence or regular Maitenance. If a relation gets auto[vacuumed|analyzed], the timestamps should remain.
2. A database engine crash or restart with ‘immediate’ option will cause the timestamps to nullify.
3. Table never qualified for vacuuming based on auto-vacuum settings.

I can rule out all three scenarios above, but I still see null values. What else could be at play here?

----------------
Thank you

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Justin Pryzby 2019-02-27 16:15:56 Re: What is pg_stat_user_tables Showing NULL for last_autoanalyze & last_autovacuum
Previous Message Laurenz Albe 2019-02-27 07:58:17 Re: Query slow for new participants