Skip to content

Commit 25cc0d0

Browse files
bmomjianreshke
authored andcommitted
1 parent 380c15b commit 25cc0d0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

doc/src/sgml/monitoring.sgml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,6 +5193,17 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
51935193
</tgroup>
51945194
</table>
51955195

5196+
<warning>
5197+
<para>
5198+
Using <function>pg_stat_reset()</function> also resets counters that
5199+
autovacuum uses to determine when to trigger a vacuum or an analyze.
5200+
Resetting these counters can cause autovacuum to not perform necessary
5201+
work, which can cause problems such as table bloat or out-dated
5202+
table statistics. A database-wide <command>ANALYZE</command> is
5203+
recommended after the statistics have been reset.
5204+
</para>
5205+
</warning>
5206+
51965207
<para>
51975208
<function>pg_stat_get_activity</function>, the underlying function of
51985209
the <structname>pg_stat_activity</structname> view, returns a set of records

0 commit comments

Comments
 (0)