Re: Fix pg_stat_reset_single_table_counters function
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Masahiro Ikeda <ikedamsh@oss.nttdata.com>, pgsql-hackers@lists.postgresql.org, mitsuru.hinata.5432@gmail.com
Date: 2023-08-12T19:12:07Z
Lists: pgsql-hackers
Hi, On 2023-08-10 17:48:10 +0900, Masahiko Sawada wrote: > Good catch! I've confirmed that the issue has been fixed by your patch. Indeed. > However, I'm not sure the added regression tests are stable since > autovacuum workers may scan the pg_database and increment the > statistics after resetting the stats. What about updating the table and checking the update count is reset? That'd not be reset by autovacuum. Greetings, Andres Freund
Commits
-
Fix pg_stat_reset_single_table_counters() for shared relations
- ad8753a3a717 15.5 landed
- d6af45052dc8 16.0 landed
- 6fde2d9a005a 17.0 landed