Postgres 9.x table/index stats reset timestamp

From: Dave Quello <dquello(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgres 9.x table/index stats reset timestamp
Date: 2017-03-02 18:03:05
Message-ID: CAAdcU1UR5bC-C57qOwDqLEnD6EGG3efCA8qeArFHziHJgGFnmQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Function *pg_stat_reset_single_table_counters*() resets stats for a single
table/index that you typically query through pg_stat_user_tables or
pg_stat_user_indexes, but there is no apparent way to retrieve the
timestamp of the reset. All stats in the db can be reset using
pg_stat_reset() and the last reset date can be retrieved from
pg_stat_database, but I’d prefer not to reset ALL stats when the focus is
on a particular table/index.

Are individual table/index reset timestamps stored? If so, can they be
retrieved?

Thanks,
Dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott ribe 2017-03-02 19:42:08 PG on SSD
Previous Message Adrian Klaver 2017-03-02 16:06:57 Re: pg_restore successful with warnings returns exit code of non-zero