pgsql: Clear I/O timing counters after sending them to the stats collec

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

Clear I/O timing counters after sending them to the stats collector.

This oversight caused the reported times to accumulate in an O(N^2)
fashion the longer a backend runs.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/cdbad241f41362aaf09f913722a541e04e048742

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