Re: Warning about using pg_stat_reset() and pg_stat_reset_shared() - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Warning about using pg_stat_reset() and pg_stat_reset_shared()
Date
Msg-id CA+TgmoY1giSdrAzrdFAi7jenkFV7jZ8rhx9Uwt3JBTxhxTowyA@mail.gmail.com
Whole thread Raw
In response to Warning about using pg_stat_reset() and pg_stat_reset_shared()  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Wed, Sep 28, 2022 at 11:45 AM Bruce Momjian <bruce@momjian.us> wrote:
> 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?

+1.

> Are there other risks?

I don't know.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Warning about using pg_stat_reset() and pg_stat_reset_shared()
Next
From: Önder Kalacı
Date:
Subject: A potential memory leak on Merge Join when Sort node is not below Materialize node