summaryrefslogtreecommitdiff
path: root/src/include/pgstat.h
diff options
context:
space:
mode:
authorRobert Haas2012-04-05 18:03:21 +0000
committerRobert Haas2012-04-05 18:04:37 +0000
commitb736aef2ec57b520ebadb70cceac0fed3168a5df (patch)
tree33ae0d9d4da2097abde0bbbd6de63b72ef1f7dd7 /src/include/pgstat.h
parenta75b08066ab4b426b1bd056fed81302e5a5d5371 (diff)
Publish checkpoint timing information to pg_stat_bgwriter.
Greg Smith, Peter Geoghegan, and Robert Haas
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r--src/include/pgstat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index b3618f28d01..35b030a42c8 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -366,6 +366,8 @@ typedef struct PgStat_MsgBgWriter
PgStat_Counter m_buf_written_backend;
PgStat_Counter m_buf_fsync_backend;
PgStat_Counter m_buf_alloc;
+ PgStat_Counter m_checkpoint_write_time;
+ PgStat_Counter m_checkpoint_sync_time;
} PgStat_MsgBgWriter;
/* ----------
@@ -612,6 +614,8 @@ typedef struct PgStat_GlobalStats
TimestampTz stats_timestamp; /* time of stats file update */
PgStat_Counter timed_checkpoints;
PgStat_Counter requested_checkpoints;
+ PgStat_Counter checkpoint_write_time; /* times in milliseconds */
+ PgStat_Counter checkpoint_sync_time;
PgStat_Counter buf_written_checkpoints;
PgStat_Counter buf_written_clean;
PgStat_Counter maxwritten_clean;