{"kind": "metric", "major": "18", "item": {"slug": "pg_stat_wal-wal_sync", "name": "pg_stat_wal.wal_sync", "name_zh": "", "category": "pg_stat_wal", "summary": "\u6240\u9009\u7248\u672c\u672a\u6536\u5f55\u6b64\u6761\u76ee\u3002", "aliases": ["wal_sync", "pg_stat_wal"], "content_hash": "363f94349f06baceb0b284702db7614588a37a1ffb68d6c0231ef3104e1e6069", "versions": {"14": {"view": "pg_stat_wal", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "field": "wal_sync", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_wal/?v=14", "label": "pg_stat_wal \u5b57\u6bb5"}, {"url": "/docs/14/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sources": [{"url": "/docs/14/monitoring-stats.html#PG-STAT-WAL-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 14 English manual", "sha256": "1852c6205d68e465d08dd8f75e3b6bfdd4a475ee8d79886e2dcff6bff8e2d243"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "5d0b3feda6ee0197d76fdc68b8b0b9837def8844a3463bc79c380c92ca629dbb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef"}, "body_sha256": "4674bac4d2d0ad98d4e46484676880049de18413992628b93fff2c619ddf22a3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "sql_type": "bigint", "center_zh": {"title": "pg_stat_wal.wal_sync", "locale": "zh-Hans", "source": {"key": "pg_stat_wal-wal_sync", "locale": "zh-Hans", "version": "14", "text_hash": "cfcef5a190422c83f78c7d2171f80d8a094da39619ce87f1e4435642985f986f", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "5d0b3feda6ee0197d76fdc68b8b0b9837def8844a3463bc79c380c92ca629dbb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef"}, "body_sha256": "4674bac4d2d0ad98d4e46484676880049de18413992628b93fff2c619ddf22a3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/14/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "version": "14", "link_map": {"/zh/docs/14/monitoring-stats.html": "/docs/14/monitoring-stats.html"}, "body_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/14/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c8a4e72f9b955cc2615724a0b3cd89696a3f774d1f5e4a5e168090b5e591f9a9", "content_hash": "cfcef5a190422c83f78c7d2171f80d8a094da39619ce87f1e4435642985f986f", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "tables_zh": [], "documented": true, "description": ["\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002"], "manual_html": "", "manual_path": "/docs/14/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/14/monitoring-stats.html", "method": "same-major semantic node", "sha256": "a622383556aa74bc5f0e402d9cb6c1e6ce1d111286c0f4e45f55b81e34d57922", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[16]/p[2]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 30.5 for more information about the internal WAL function issue_xlog_fsync.", "/versions/14/facts/0/label": "View", "/versions/14/facts/1/label": "Field", "/versions/14/facts/2/label": "SQL type", "/versions/14/facts/3/label": "Units named in the field definition", "/versions/14/facts/3/value": "Not specified", "/versions/14/facts/4/label": "Reset observation", "/versions/14/facts/4/value": "Time at which these statistics were last reset", "/versions/14/related/0/label": "pg_stat_wal columns", "/versions/14/related/1/label": "Statistics collection and reset functions", "/versions/14/sections/0/title": "View semantics", "/versions/14/sections/1/title": "Collection and reset context", "/versions/14/sections/2/title": "Inspect this field", "/versions/14/sections/0/paragraphs/0": "The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.", "/versions/14/sections/1/paragraphs/0": "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.", "/versions/14/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ef028bba3ba95b665da935066d9ca11b4bd38aa5db8c01192203dd5805b008d7", "canonical_center_text_hash": "cfcef5a190422c83f78c7d2171f80d8a094da39619ce87f1e4435642985f986f"}, "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "comparison_data": {"view": "pg_stat_wal", "field": "wal_sync", "sql_type": "bigint", "units_mentioned": []}, "comparison_hash": "dce25667b3ebde0d5939be945cf2c4e3b7a9875010cc4109d3cbc77ab990a5a5", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/14/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"view": "pg_stat_wal", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "field": "wal_sync", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_wal/?v=15", "label": "pg_stat_wal \u5b57\u6bb5"}, {"url": "/docs/15/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sources": [{"url": "/docs/15/monitoring-stats.html#PG-STAT-WAL-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 15 English manual", "sha256": "034c0a2e99e6707e637bf4d6cfd819d39eddc1b4b7c1ec2a00f0b4f0fdb0a078"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "a1f491ce4744d3b72b0eced7fad7c91762a4a8ba5ce0d61094b0616668450592", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad"}, "body_sha256": "54fe18727b4c05ce0ff643326b0898982d30009cf098a13ae04297a08cbf08f0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "sql_type": "bigint", "center_zh": {"title": "pg_stat_wal.wal_sync", "locale": "zh-Hans", "source": {"key": "pg_stat_wal-wal_sync", "locale": "zh-Hans", "version": "15", "text_hash": "a6092d486cf7c3bac64a9bb49bf1af53e4595d222e215fc730d16179d0130853", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "a1f491ce4744d3b72b0eced7fad7c91762a4a8ba5ce0d61094b0616668450592", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad"}, "body_sha256": "54fe18727b4c05ce0ff643326b0898982d30009cf098a13ae04297a08cbf08f0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/15/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "version": "15", "link_map": {"/zh/docs/15/monitoring-stats.html": "/docs/15/monitoring-stats.html"}, "body_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/15/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "89f602b3e52cc94d0f3ee1dcc3e3a37aaf9d6992005467df6c9b6387d7a6653e", "content_hash": "a6092d486cf7c3bac64a9bb49bf1af53e4595d222e215fc730d16179d0130853", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "tables_zh": [], "documented": true, "description": ["\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002"], "manual_html": "", "manual_path": "/docs/15/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/15/monitoring-stats.html", "method": "same-major semantic node", "sha256": "373028581d43d13a3f098f997d5912fca6c8c1bf42a129d9336834c119bcaf6b", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[18]/p[2]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 30.5 for more information about the internal WAL function issue_xlog_fsync.", "/versions/15/facts/0/label": "View", "/versions/15/facts/1/label": "Field", "/versions/15/facts/2/label": "SQL type", "/versions/15/facts/3/label": "Units named in the field definition", "/versions/15/facts/3/value": "Not specified", "/versions/15/facts/4/label": "Reset observation", "/versions/15/facts/4/value": "Time at which these statistics were last reset", "/versions/15/related/0/label": "pg_stat_wal columns", "/versions/15/related/1/label": "Statistics collection and reset functions", "/versions/15/sections/0/title": "View semantics", "/versions/15/sections/1/title": "Collection and reset context", "/versions/15/sections/2/title": "Inspect this field", "/versions/15/sections/0/paragraphs/0": "The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.", "/versions/15/sections/1/paragraphs/0": "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.", "/versions/15/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "f63f9001874be3160272c729df445159404179af96df9c312aab719e2bb28286", "canonical_center_text_hash": "a6092d486cf7c3bac64a9bb49bf1af53e4595d222e215fc730d16179d0130853"}, "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "comparison_data": {"view": "pg_stat_wal", "field": "wal_sync", "sql_type": "bigint", "units_mentioned": []}, "comparison_hash": "dce25667b3ebde0d5939be945cf2c4e3b7a9875010cc4109d3cbc77ab990a5a5", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/15/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"view": "pg_stat_wal", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "field": "wal_sync", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_wal/?v=16", "label": "pg_stat_wal \u5b57\u6bb5"}, {"url": "/docs/16/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sources": [{"url": "/docs/16/monitoring-stats.html#PG-STAT-WAL-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 16 English manual", "sha256": "a4c274defe8a41ff2895040cd542b5499063b844669ff3336de1a1317c3fe086"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "bc7073c776c27e13a8c84203c68f4913e8ee7601c38364f2b4e397c4851c8e08", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b"}, "body_sha256": "15d3a546e7351f1f4a582a1a17a035695936c9c9bc5fd884731daf6637fdfe49", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "sql_type": "bigint", "center_zh": {"title": "pg_stat_wal.wal_sync", "locale": "zh-Hans", "source": {"key": "pg_stat_wal-wal_sync", "locale": "zh-Hans", "version": "16", "text_hash": "976d824cc9ffc5691ba758a51494db0b6de93fe52832e7566123bfbc03852cf0", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "bc7073c776c27e13a8c84203c68f4913e8ee7601c38364f2b4e397c4851c8e08", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b"}, "body_sha256": "15d3a546e7351f1f4a582a1a17a035695936c9c9bc5fd884731daf6637fdfe49", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/16/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "version": "16", "link_map": {"/zh/docs/16/monitoring-stats.html": "/docs/16/monitoring-stats.html"}, "body_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/16/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "fecc9d1c7b7c7f39b0194996298ed17c86cd931d036a12260b3ae9fa3364530d", "content_hash": "976d824cc9ffc5691ba758a51494db0b6de93fe52832e7566123bfbc03852cf0", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "tables_zh": [], "documented": true, "description": ["\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002"], "manual_html": "", "manual_path": "/docs/16/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/16/monitoring-stats.html", "method": "same-major semantic node", "sha256": "602e708943074767e7aad252e93938422e388dae22bd99fc583e93f7689395ba", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[19]/p[2]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 30.5 for more information about the internal WAL function issue_xlog_fsync.", "/versions/16/facts/0/label": "View", "/versions/16/facts/1/label": "Field", "/versions/16/facts/2/label": "SQL type", "/versions/16/facts/3/label": "Units named in the field definition", "/versions/16/facts/3/value": "Not specified", "/versions/16/facts/4/label": "Reset observation", "/versions/16/facts/4/value": "Time at which these statistics were last reset", "/versions/16/related/0/label": "pg_stat_wal columns", "/versions/16/related/1/label": "Statistics collection and reset functions", "/versions/16/sections/0/title": "View semantics", "/versions/16/sections/1/title": "Collection and reset context", "/versions/16/sections/2/title": "Inspect this field", "/versions/16/sections/0/paragraphs/0": "The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.", "/versions/16/sections/1/paragraphs/0": "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.", "/versions/16/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "a9c1720a3c574c9568a56f2e78fd3db6cfc1eeb65999c87ab78cf5c4c977256f", "canonical_center_text_hash": "976d824cc9ffc5691ba758a51494db0b6de93fe52832e7566123bfbc03852cf0"}, "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002", "comparison_data": {"view": "pg_stat_wal", "field": "wal_sync", "sql_type": "bigint", "units_mentioned": []}, "comparison_hash": "dce25667b3ebde0d5939be945cf2c4e3b7a9875010cc4109d3cbc77ab990a5a5", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 30.5 \u8282\u3002</p><p><a href=\"/zh/docs/16/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"view": "pg_stat_wal", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "field": "wal_sync", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_wal/?v=17", "label": "pg_stat_wal \u5b57\u6bb5"}, {"url": "/docs/17/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sources": [{"url": "/docs/17/monitoring-stats.html#PG-STAT-WAL-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 17 English manual", "sha256": "007af6e8ab39b925963273ec3ba7f06f8ee6fbfaad821f07a1dc78383dbb9b99"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "ad63a74417862b28cba663bd779186633505e5da37845bce5f2e4bf62ee55c2b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd"}, "body_sha256": "aa029156d5633cb107b0e19336a9d6f024d03e641e290cc1e3ff9ccc97428ec0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "sql_type": "bigint", "center_zh": {"title": "pg_stat_wal.wal_sync", "locale": "zh-Hans", "source": {"key": "pg_stat_wal-wal_sync", "locale": "zh-Hans", "version": "17", "text_hash": "a0c59b6a5b0798690868b26778c67f56040ff3fa20859c414a920306897a4ac1", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_wal"}, {"label": "\u5b57\u6bb5", "value": "wal_sync"}, {"label": "SQL \u7c7b\u578b", "value": "bigint"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u8fd9\u4e9b\u7edf\u8ba1\u4e0a\u6b21\u91cd\u7f6e\u7684\u65f6\u95f4"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/monitoring-stats.html#", "anchor": "", "column": "wal_sync", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "ad63a74417862b28cba663bd779186633505e5da37845bce5f2e4bf62ee55c2b", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd"}, "body_sha256": "aa029156d5633cb107b0e19336a9d6f024d03e641e290cc1e3ff9ccc97428ec0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002", "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002</p><p><a href=\"/zh/docs/17/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002", "version": "17", "link_map": {"/zh/docs/17/monitoring-stats.html": "/docs/17/monitoring-stats.html"}, "body_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002</p><p><a href=\"/zh/docs/17/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "49d36b8ad071e3ba8b59096465eaf1b0e74844d52f3de911aa4b062814594a3d", "content_hash": "a0c59b6a5b0798690868b26778c67f56040ff3fa20859c414a920306897a4ac1", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "tables_zh": [], "documented": true, "description": ["\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002"], "manual_html": "", "manual_path": "/docs/17/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_wal \u89c6\u56fe\u4e00\u76f4\u6709\u4e00\u884c\uff0c\u5305\u542b\u5173\u4e8e\u96c6\u7c07\u7684WAL\u6d3b\u52a8\u7684\u6570\u636e\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u91cd\u7f6e\u8bed\u4e49", "paragraphs": ["\u91cd\u7f6e\u8303\u56f4\u548c\u53ef\u89c1\u6027\u8bf7\u53c2\u9605\u4e0b\u65b9\u540c\u7248\u672c\u7684\u7edf\u8ba1\u4fe1\u606f\u6536\u96c6\u4e0e\u89c6\u56fe\u6587\u6863\u3002\u4e0d\u6839\u636e\u5b57\u6bb5\u540d\u79f0\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "SELECT wal_sync FROM pg_catalog.pg_stat_wal;", "title": "\u67e5\u770b\u6b64\u5b57\u6bb5", "paragraphs": ["\u793a\u4f8b\u67e5\u8be2\uff1b\u4e0d\u8868\u793a\u5df2\u6267\u884c\uff0c\u4e5f\u4e0d\u63d0\u4f9b\u5b9e\u6d4b\u503c\u3002"]}], "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/17/monitoring-stats.html", "method": "same-major semantic node", "sha256": "5cd346cc373a5a006b07664d9969d4c630c8ea55dea33b8f3211f061ce43e54f", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[20]/p[2]"]}], "language": "zh", "original_text": {"/summary": "Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 28.5 for more information about the internal WAL function issue_xlog_fsync.", "/versions/17/description/0": "Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 28.5 for more information about the internal WAL function issue_xlog_fsync.", "/versions/17/facts/0/label": "View", "/versions/17/facts/1/label": "Field", "/versions/17/facts/2/label": "SQL type", "/versions/17/facts/3/label": "Units named in the field definition", "/versions/17/facts/3/value": "Not specified", "/versions/17/facts/4/label": "Reset observation", "/versions/17/facts/4/value": "Time at which these statistics were last reset", "/versions/17/related/0/label": "pg_stat_wal columns", "/versions/17/related/1/label": "Statistics collection and reset functions", "/versions/17/sections/0/title": "View semantics", "/versions/17/sections/1/title": "Collection and reset context", "/versions/17/sections/2/title": "Inspect this field", "/versions/17/sections/0/paragraphs/0": "The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.", "/versions/17/sections/1/paragraphs/0": "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.", "/versions/17/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ec4855bc1c62d0439627418975df8ca5cd2d19f67ecca5fe2dc71e043ddf48fb", "canonical_center_text_hash": "a0c59b6a5b0798690868b26778c67f56040ff3fa20859c414a920306897a4ac1"}, "description_zh": "\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002", "comparison_data": {"view": "pg_stat_wal", "field": "wal_sync", "sql_type": "bigint", "units_mentioned": []}, "comparison_hash": "dce25667b3ebde0d5939be945cf2c4e3b7a9875010cc4109d3cbc77ab990a5a5", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_wal.wal_sync \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_wal</code></dd><dt>\u5b57\u6bb5</dt><dd><code>wal_sync</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>bigint</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u901a\u8fc7 issue_xlog_fsync \u8bf7\u6c42\u5c06 WAL \u6587\u4ef6\u540c\u6b65\u5230\u78c1\u76d8\u7684\u6b21\u6570\uff08\u5982\u679c fsync \u662f on \u4e14 wal_sync_method \u662f fdatasync\u3001fsync \u6216 fsync_writethrough\uff0c\u5426\u5219\u4e3a\u96f6\uff09\u3002\u6709\u5173\u5185\u90e8 WAL \u51fd\u6570 issue_xlog_fsync \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53c2\u89c1\u7b2c 28.5 \u8282\u3002</p><p><a href=\"/zh/docs/17/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}}}, "snapshot": null, "comparison": {"left": "17", "right": "18", "status": "removed", "diff": "--- PostgreSQL 17\n+++ PostgreSQL 18\n@@ -1,6 +1 @@\n-{\n-  \"field\": \"wal_sync\",\n-  \"sql_type\": \"bigint\",\n-  \"units_mentioned\": [],\n-  \"view\": \"pg_stat_wal\"\n-}\n+\u8be5\u7248\u672a\u6536\u5f55"}}