{"Entry":{"collection":"metric","key":"pg_stat_wal-wal_sync_time","name":"pg_stat_wal.wal_sync_time","aliases":["wal_sync_time","pg_stat_wal"],"metadata":{"aliases":["wal_sync_time","pg_stat_wal"],"category":"pg_stat_wal","content_hash":"186f8e62260ce36257af7e94da1b26ec9f405b7c733e9a64356295d0c6ddf28f","imported_at":"2026-09-30T00:40:46.485657+08:00","name":"pg_stat_wal.wal_sync_time","name_zh":"","slug":"pg_stat_wal-wal_sync_time","summary":"Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero)."}},"Definition":{"Collection":"metric","Key":"pg_stat_wal-wal_sync_time","SourceDatabase":"center","Version":"17","SourceTable":"statistics_metric","SourceKey":"pg_stat_wal-wal_sync_time","SourceRevision":"dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979","Facts":{"comparison_data":{"field":"wal_sync_time","sql_type":"double precision","units_mentioned":["milliseconds"],"view":"pg_stat_wal"},"comparison_hash":"d7b7f45d9ce13a64d7e0bd112f00c72932dd1e87d7dd6e875ee9b283cbc4d0f3","description":["Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero)."],"documented":true,"facts":[{"label":"View","value":"pg_stat_wal"},{"label":"Field","value":"wal_sync_time"},{"label":"SQL type","value":"double precision"},{"label":"Units named in the field definition","value":"milliseconds"},{"label":"Reset observation","value":"Time at which these statistics were last reset"}],"field":"wal_sync_time","manual_html":"","manual_path":"/docs/17/monitoring-stats.html","related":[{"label":"pg_stat_wal columns","url":"/wiki/catalog/pg_stat_wal/?v=17"},{"label":"Statistics collection and reset functions","url":"/docs/17/monitoring-stats.html"}],"release":{"channel":"stable","label":"17.11","major":"17","ref":"https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2","revision":"dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"},"sections":[{"paragraphs":["The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT wal_sync_time FROM pg_catalog.pg_stat_wal;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"signature":"SELECT wal_sync_time FROM pg_catalog.pg_stat_wal;","source_only":false,"sources":[{"label":"PostgreSQL 17 English manual","path":"monitoring-stats.html","sha256":"007af6e8ab39b925963273ec3ba7f06f8ee6fbfaad821f07a1dc78383dbb9b99","url":"/docs/17/monitoring-stats.html#PG-STAT-WAL-VIEW"}],"sql_type":"double precision","tables":[],"units_mentioned":["milliseconds"],"view":"pg_stat_wal"},"ManualEvidence":{"manual_path":"/docs/17/monitoring-stats.html","release":{"channel":"stable","label":"17.11","major":"17","ref":"https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2","revision":"dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"},"sources":[{"label":"PostgreSQL 17 English manual","path":"monitoring-stats.html","sha256":"007af6e8ab39b925963273ec3ba7f06f8ee6fbfaad821f07a1dc78383dbb9b99","url":"/docs/17/monitoring-stats.html#PG-STAT-WAL-VIEW"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_wal-wal_sync_time","SourceDatabase":"center","Version":"17","Locale":"en","Title":"pg_stat_wal.wal_sync_time","Summary":"Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero).","BodyHTML":"\u003cp\u003eTotal amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero).\u003c/p\u003e","SourceRevision":"dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979","ContentHash":"01394a9b8cb22753c3745cfc4728b29f5489e923ab9fa58f2ab3f08ef3b3d6e0","Payload":{"description":["Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero)."],"manual_html":"","related":[{"label":"pg_stat_wal columns","url":"/wiki/catalog/pg_stat_wal/?v=17"},{"label":"Statistics collection and reset functions","url":"/docs/17/monitoring-stats.html"}],"sections":[{"paragraphs":["The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT wal_sync_time FROM pg_catalog.pg_stat_wal;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["14","15","16","17"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
