Warning about using pg_stat_reset() and pg_stat_reset_shared()

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Warning about using pg_stat_reset() and pg_stat_reset_shared()
Date: 2022-09-28 15:44:59
Message-ID: YzRr+ys98UzVQJvK@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have discussed the problems caused by the use of pg_stat_reset() and
pg_stat_reset_shared(), specifically the removal of information needed
by autovacuum. I don't see these risks documented anywhere. Should we
do that? Are there other risks?

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Indecision is a decision. Inaction is an action. Mark Batterson

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2022-09-28 16:02:03 Re: Warning about using pg_stat_reset() and pg_stat_reset_shared()
Previous Message Tom Lane 2022-09-28 15:28:33 Re: Enables to call Unregister*XactCallback() in Call*XactCallback()