Bruce Momjian 2022-10-17 15:07:02 -04:00
parent 65c1106d8c
commit 6a71bf6f58

View File

@ -3339,6 +3339,17 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
</tgroup> </tgroup>
</table> </table>
<warning>
<para>
Using <function>pg_stat_reset()</function> also resets counters that
autovacuum uses to determine when to trigger a vacuum or an analyze.
Resetting these counters can cause autovacuum to not perform necessary
work, which can cause problems such as table bloat or out-dated
table statistics. A database-wide <command>ANALYZE</command> is
recommended after the statistics have been reset.
</para>
</warning>
<para> <para>
<function>pg_stat_get_activity</function>, the underlying function of <function>pg_stat_get_activity</function>, the underlying function of
the <structname>pg_stat_activity</structname> view, returns a set of records the <structname>pg_stat_activity</structname> view, returns a set of records