Skip to content

Commit b661aea

Browse files
committed
1 parent 2f26cec commit b661aea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/src/sgml/monitoring.sgml

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

5183+
<warning>
5184+
<para>
5185+
Using <function>pg_stat_reset()</function> also resets counters that
5186+
autovacuum uses to determine when to trigger a vacuum or an analyze.
5187+
Resetting these counters can cause autovacuum to not perform necessary
5188+
work, which can cause problems such as table bloat or out-dated
5189+
table statistics. A database-wide <command>ANALYZE</command> is
5190+
recommended after the statistics have been reset.
5191+
</para>
5192+
</warning>
5193+
51835194
<para>
51845195
<function>pg_stat_get_activity</function>, the underlying function of
51855196
the <structname>pg_stat_activity</structname> view, returns a set of records

0 commit comments

Comments
 (0)