Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6a71bf6

Browse files
committedOct 17, 2022
1 parent 65c1106 commit 6a71bf6

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
@@ -3339,6 +3339,17 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
33393339
</tgroup>
33403340
</table>
33413341

3342+
<warning>
3343+
<para>
3344+
Using <function>pg_stat_reset()</function> also resets counters that
3345+
autovacuum uses to determine when to trigger a vacuum or an analyze.
3346+
Resetting these counters can cause autovacuum to not perform necessary
3347+
work, which can cause problems such as table bloat or out-dated
3348+
table statistics. A database-wide <command>ANALYZE</command> is
3349+
recommended after the statistics have been reset.
3350+
</para>
3351+
</warning>
3352+
33423353
<para>
33433354
<function>pg_stat_get_activity</function>, the underlying function of
33443355
the <structname>pg_stat_activity</structname> view, returns a set of records

0 commit comments

Comments
 (0)
Failed to load comments.