Skip to content

Commit 63a3709

Browse files
committed
1 parent ecf4ce6 commit 63a3709

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
@@ -3088,6 +3088,17 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
30883088
</tgroup>
30893089
</table>
30903090

3091+
<warning>
3092+
<para>
3093+
Using <function>pg_stat_reset()</function> also resets counters that
3094+
autovacuum uses to determine when to trigger a vacuum or an analyze.
3095+
Resetting these counters can cause autovacuum to not perform necessary
3096+
work, which can cause problems such as table bloat or out-dated
3097+
table statistics. A database-wide <command>ANALYZE</command> is
3098+
recommended after the statistics have been reset.
3099+
</para>
3100+
</warning>
3101+
30913102
<para>
30923103
<function>pg_stat_get_activity</function>, the underlying function of
30933104
the <structname>pg_stat_activity</> view, returns a set of records

0 commit comments

Comments
 (0)