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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clear I/O timing counters after sending them to the stats collec
Date: 2012-04-28 19:11:37
Message-ID: E1SOD3R-0007V2-Ue@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-04-28 20:04:09 pgsql: Adjust timing units in pg_stat_statements.
Previous Message Peter Eisentraut 2012-04-28 10:34:30 pgsql: PL/Python: Update list of supported environment variables