8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05dd9fb commit cdbad24Copy full SHA for cdbad24
src/backend/postmaster/pgstat.c
@@ -784,8 +784,8 @@ pgstat_send_tabstat(PgStat_MsgTabstat *tsmsg)
784
return;
785
786
/*
787
- * Report accumulated xact commit/rollback and I/O timings whenever we send
788
- * a normal tabstat message
+ * Report and reset accumulated xact commit/rollback and I/O timings
+ * whenever we send a normal tabstat message
789
*/
790
if (OidIsValid(tsmsg->m_databaseid))
791
{
@@ -795,6 +795,8 @@ pgstat_send_tabstat(PgStat_MsgTabstat *tsmsg)
795
tsmsg->m_block_time_write = pgStatBlockTimeWrite;
796
pgStatXactCommit = 0;
797
pgStatXactRollback = 0;
798
+ pgStatBlockTimeRead = 0;
799
+ pgStatBlockTimeWrite = 0;
800
}
801
else
802
0 commit comments