pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philip Semanchuk <philip@americanefficient.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: pg_stat_user_tables.n_mod_since_analyze persistence?
Date: Mon, 15 Feb 2021 11:57:55 -0500
Message-ID: <F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com> (raw)

Hi all,
I saw some unexpected behavior that I'm trying to understand. I suspect it might be a quirk specific to AWS Aurora and I'd like to confirm that.

When I restart my local Postgres instance (on my Mac), the values in pg_stat_user_tables.n_mod_since_analyze are preserved. In other words, if table foo had n_mod_since_analyze=33 before the reboot, it still has n_mod_since_analyze=33 after the restart. 

When I restart an AWS Aurora instance, the values in pg_stat_user_tables.n_mod_since_analyze all seem to be reset to 0. 

Can anyone confirm (or refute) that the behavior I see on my Mac (preservation of these values through a restart) is common & expected behavior?

Thanks
Philip




view thread (3+ messages)  latest in thread

Message-ID: <F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com>
Permalink:  ../F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com/
Also on:    postgresql.org/message-id/F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com

 · 

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: philip@americanefficient.com
  Subject: Re: pg_stat_user_tables.n_mod_since_analyze persistence?
  In-Reply-To: <F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com>
  References: <F89A47FA-BC9F-480B-AF42-3DC74C26C67C@americanefficient.com>

* 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