pgsql: Reset all database-level stats in pgstat_recv_resetcounter().

Started by Tom Laneover 15 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Reset all database-level stats in pgstat_recv_resetcounter().

We were failing to zero out some pg_stat_database counters that have
been added since the initial pgstats coding. This is a bug, but not
back-patching the fix since changing this behavior in a minor release
seems a cure worse than the disease.

Report and patch by Tomas Vondra.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=0c90442355fbbe785740669f63141f24674c8958

Modified Files
--------------
src/backend/postmaster/pgstat.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)