mirror of
https://github.com/postgres/postgres.git
synced 2025-12-06 00:02:13 +03:00
Publish checkpoint timing information to pg_stat_bgwriter.
Greg Smith, Peter Geoghegan, and Robert Haas
This commit is contained in:
@@ -4455,6 +4455,8 @@ pgstat_recv_bgwriter(PgStat_MsgBgWriter *msg, int len)
|
||||
{
|
||||
globalStats.timed_checkpoints += msg->m_timed_checkpoints;
|
||||
globalStats.requested_checkpoints += msg->m_requested_checkpoints;
|
||||
globalStats.checkpoint_write_time += msg->m_checkpoint_write_time;
|
||||
globalStats.checkpoint_sync_time += msg->m_checkpoint_sync_time;
|
||||
globalStats.buf_written_checkpoints += msg->m_buf_written_checkpoints;
|
||||
globalStats.buf_written_clean += msg->m_buf_written_clean;
|
||||
globalStats.maxwritten_clean += msg->m_maxwritten_clean;
|
||||
|
||||
Reference in New Issue
Block a user