{"kind": "metric", "major": "18", "item": {"slug": "pg_stat_progress_vacuum-mode", "name": "pg_stat_progress_vacuum.mode", "name_zh": "", "category": "pg_stat_progress_vacuum", "summary": "\u6240\u9009\u7248\u672c\u672a\u6536\u5f55\u6b64\u6761\u76ee\u3002", "aliases": ["mode", "pg_stat_progress_vacuum"], "content_hash": "aa9dbd4c045e3bcc4c03bd68eb85f7721e3b8c51994651995e94140e590a0ba7", "versions": {"19": {"view": "pg_stat_progress_vacuum", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_progress_vacuum"}, {"label": "\u5b57\u6bb5", "value": "mode"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "mode", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_progress_vacuum/?v=19", "label": "pg_stat_progress_vacuum \u5b57\u6bb5"}, {"url": "/docs/19/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, "sources": [{"url": "https://pg.center/docs/19/progress-reporting.html#PG-STAT-PROGRESS-VACUUM-VIEW", "path": "progress-reporting.html", "label": "PostgreSQL 19 English manual", "sha256": "911eea089109c945679f9ac5c21a3b1b7c9186237acec4639f23861e931e24cc", "language": "en", "original_url": "/docs/19/progress-reporting.html#PG-STAT-PROGRESS-VACUUM-VIEW"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u8fd0\u884c VACUUM \u65f6\uff0cpg_stat_progress_vacuum \u89c6\u56fe\u4f1a\u4e3a\u5f53\u524d\u6267\u884c\u6e05\u7406\u7684\u6bcf\u4e2a\u540e\u7aef\uff08\u5305\u62ec autovacuum \u5de5\u4f5c\u8fdb\u7a0b\uff09\u63d0\u4f9b\u4e00\u884c\u3002\u4e0b\u5217\u8868\u683c\u8bf4\u660e\u6240\u62a5\u544a\u7684\u4fe1\u606f\u53ca\u5176\u89e3\u8bfb\u65b9\u5f0f\u3002VACUUM FULL \u7684\u8fdb\u5ea6\u901a\u8fc7 pg_stat_progress_repack \u62a5\u544a\uff0c\u4e5f\u53ef\u901a\u8fc7\u4e3a\u5411\u540e\u517c\u5bb9\u4fdd\u7559\u7684 pg_stat_progress_cluster \u67e5\u770b\uff1b\u8fd9\u662f\u56e0\u4e3a VACUUM FULL \u548c CLUSTER \u90fd\u4f1a\u91cd\u5199\u8868\uff0c\u800c\u666e\u901a VACUUM \u53ea\u8fdb\u884c\u539f\u5730\u4fee\u6539\u3002\u89c1\u7b2c 27.4.5 \u8282\u548c\u7b2c 27.4.2 \u8282\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 mode FROM pg_catalog.pg_stat_progress_vacuum;", "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": "text", "signature": "SELECT mode FROM pg_catalog.pg_stat_progress_vacuum;", "documented": true, "description": ["\u5f53\u524d VACUUM \u64cd\u4f5c\u7684\u8fd0\u884c\u6a21\u5f0f\u3002\u5404\u6a21\u5f0f\u7684\u8be6\u60c5\u89c1\u7b2c 24.1.5 \u8282\u3002\u53ef\u80fd\u7684\u503c\u5305\u62ec\uff1anormal\uff1a\u6267\u884c\u6807\u51c6\u6e05\u7406\uff0c\u65e2\u4e0d\u9700\u8981\u6fc0\u8fdb\u6e05\u7406\uff0c\u4e5f\u672a\u5904\u4e8e\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\u3002aggressive\uff1a\u6267\u884c\u6fc0\u8fdb\u6e05\u7406\uff0c\u5fc5\u987b\u626b\u63cf\u6240\u6709\u672a\u6807\u8bb0\u4e3a all-frozen \u7684\u9875\u9762\u3002vacuum_freeze_table_age \u548c vacuum_multixact_freeze_table_age \u53c2\u6570\u51b3\u5b9a\u8868\u4f55\u65f6\u9700\u8981\u6fc0\u8fdb\u6e05\u7406\u3002failsafe\uff1a\u6e05\u7406\u5df2\u8fdb\u5165\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\uff0c\u4ec5\u6267\u884c\u9632\u6b62\u4e8b\u52a1 ID \u6216\u591a\u4e8b\u52a1 ID \u56de\u5377\u6545\u969c\u6240\u9700\u7684\u6700\u5c11\u5de5\u4f5c\u3002vacuum_failsafe_age \u548c vacuum_multixact_failsafe_age \u53c2\u6570\u51b3\u5b9a\u4f55\u65f6\u8fdb\u5165\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\u3002\u6e05\u7406\u53ef\u4ee5\u4ece\u6b64\u6a21\u5f0f\u5f00\u59cb\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5207\u6362\u81f3\u6b64\u6a21\u5f0f\uff1b\u64cd\u4f5c\u671f\u95f4\uff0cmode \u5217\u7684\u503c\u53ef\u80fd\u4ece\u5176\u4ed6\u6a21\u5f0f\u53d8\u4e3a failsafe\u3002"], "manual_html": "", "manual_path": "/docs/19/progress-reporting.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/19/protocol-overview.html", "method": "same-major semantic node", "sha256": "4650a5af6514ccd289c59f90ba62490b00e797ee04c02359ef9e2174c1f276ed", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "The mode in which the current VACUUM operation is running. See Section 24.1.5 for details of each mode. Possible values are:\n\nnormal: The operation is performing a standard vacuum. It is neither required to run in aggressive mode nor operating in failsafe mode. aggressive: The operation is running an aggressive vacuum, which must scan every page that is not marked all-frozen. The parameters vacuum_freeze_table_age and vacuum_multixact_freeze_table_age determine when a table requires aggressive vacuuming. failsafe: The vacuum has entered failsafe mode, in which it performs only the minimum work necessary to avoid transaction ID or multixact ID wraparound failure. The parameters vacuum_failsafe_age and vacuum_multixact_failsafe_age determine when the vacuum enters failsafe mode. The vacuum may start in this mode or switch to it while running; the value of the mode column may transition from another mode to failsafe during the operation.", "/versions/19/facts/0/label": "View", "/versions/19/facts/1/label": "Field", "/versions/19/facts/2/label": "SQL type", "/versions/19/facts/2/value": "text", "/versions/19/facts/3/label": "Units named in the field definition", "/versions/19/facts/3/value": "Not specified", "/versions/19/facts/4/label": "Reset observation", "/versions/19/facts/4/value": "No stats_reset field is documented for this view", "/versions/19/related/0/label": "pg_stat_progress_vacuum columns", "/versions/19/related/1/label": "Statistics collection and reset functions", "/versions/19/sections/0/title": "View semantics", "/versions/19/sections/1/title": "Collection and reset context", "/versions/19/sections/2/title": "Inspect this field", "/versions/19/sections/0/paragraphs/0": "Whenever VACUUM is running, the pg_stat_progress_vacuum view will contain one row for each backend (including autovacuum worker processes) that is currently vacuuming. The tables below describe the information that will be reported and provide information about how to interpret it. Progress for VACUUM FULL commands is reported via pg_stat_progress_repack, and is also visible via the backwards-compatibility pg_stat_progress_cluster because both VACUUM FULL and CLUSTER rewrite the table, while regular VACUUM only modifies it in place. See Section 27.4.5 and Section 27.4.2.", "/versions/19/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/19/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "a3d9dd3e8db6a2d8493ac0c882fb650dcf3e37dec7b9c5faf01e7d33c01e49a1"}, "comparison_data": {"view": "pg_stat_progress_vacuum", "field": "mode", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "cbec24d7abf035a81604ce8ace972dd5a4bd3c343cf88ccd071b1eed01b09b4d", "units_mentioned": []}, "20": {"view": "pg_stat_progress_vacuum", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_progress_vacuum"}, {"label": "\u5b57\u6bb5", "value": "mode"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "\u672a\u6307\u5b9a"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "mode", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_progress_vacuum/?v=20", "label": "pg_stat_progress_vacuum \u5b57\u6bb5"}, {"url": "/docs/devel/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, "sources": [{"url": "https://pg.center/docs/devel/progress-reporting.html#PG-STAT-PROGRESS-VACUUM-VIEW", "path": "progress-reporting.html", "label": "PostgreSQL 20 English manual", "sha256": "a692c859d24d77ff71231c72596243a279325b5436ece3dad58945b55688646e", "language": "en", "original_url": "/docs/devel/progress-reporting.html#PG-STAT-PROGRESS-VACUUM-VIEW"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u8fd0\u884c VACUUM \u65f6\uff0cpg_stat_progress_vacuum \u89c6\u56fe\u4f1a\u4e3a\u5f53\u524d\u6267\u884c\u6e05\u7406\u7684\u6bcf\u4e2a\u540e\u7aef\uff08\u5305\u62ec autovacuum \u5de5\u4f5c\u8fdb\u7a0b\uff09\u63d0\u4f9b\u4e00\u884c\u3002\u4e0b\u5217\u8868\u683c\u8bf4\u660e\u6240\u62a5\u544a\u7684\u4fe1\u606f\u53ca\u5176\u89e3\u8bfb\u65b9\u5f0f\u3002VACUUM FULL \u7684\u8fdb\u5ea6\u901a\u8fc7 pg_stat_progress_repack \u62a5\u544a\uff0c\u4e5f\u53ef\u901a\u8fc7\u4e3a\u5411\u540e\u517c\u5bb9\u4fdd\u7559\u7684 pg_stat_progress_cluster \u67e5\u770b\uff1b\u8fd9\u662f\u56e0\u4e3a VACUUM FULL \u548c CLUSTER \u90fd\u4f1a\u91cd\u5199\u8868\uff0c\u800c\u666e\u901a VACUUM \u53ea\u8fdb\u884c\u539f\u5730\u4fee\u6539\u3002\u89c1\u7b2c 27.4.5 \u8282\u548c\u7b2c 27.4.2 \u8282\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 mode FROM pg_catalog.pg_stat_progress_vacuum;", "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": "text", "signature": "SELECT mode FROM pg_catalog.pg_stat_progress_vacuum;", "documented": true, "description": ["\u5f53\u524d VACUUM \u64cd\u4f5c\u7684\u8fd0\u884c\u6a21\u5f0f\u3002\u5404\u6a21\u5f0f\u7684\u8be6\u60c5\u89c1\u7b2c 24.1.5 \u8282\u3002\u53ef\u80fd\u7684\u503c\u5305\u62ec\uff1anormal\uff1a\u6267\u884c\u6807\u51c6\u6e05\u7406\uff0c\u65e2\u4e0d\u9700\u8981\u6fc0\u8fdb\u6e05\u7406\uff0c\u4e5f\u672a\u5904\u4e8e\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\u3002aggressive\uff1a\u6267\u884c\u6fc0\u8fdb\u6e05\u7406\uff0c\u5fc5\u987b\u626b\u63cf\u6240\u6709\u672a\u6807\u8bb0\u4e3a all-frozen \u7684\u9875\u9762\u3002vacuum_freeze_table_age \u548c vacuum_multixact_freeze_table_age \u53c2\u6570\u51b3\u5b9a\u8868\u4f55\u65f6\u9700\u8981\u6fc0\u8fdb\u6e05\u7406\u3002failsafe\uff1a\u6e05\u7406\u5df2\u8fdb\u5165\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\uff0c\u4ec5\u6267\u884c\u9632\u6b62\u4e8b\u52a1 ID \u6216\u591a\u4e8b\u52a1 ID \u56de\u5377\u6545\u969c\u6240\u9700\u7684\u6700\u5c11\u5de5\u4f5c\u3002vacuum_failsafe_age \u548c vacuum_multixact_failsafe_age \u53c2\u6570\u51b3\u5b9a\u4f55\u65f6\u8fdb\u5165\u6545\u969c\u4fdd\u62a4\u6a21\u5f0f\u3002\u6e05\u7406\u53ef\u4ee5\u4ece\u6b64\u6a21\u5f0f\u5f00\u59cb\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5207\u6362\u81f3\u6b64\u6a21\u5f0f\uff1b\u64cd\u4f5c\u671f\u95f4\uff0cmode \u5217\u7684\u503c\u53ef\u80fd\u4ece\u5176\u4ed6\u6a21\u5f0f\u53d8\u4e3a failsafe\u3002"], "manual_html": "", "manual_path": "/docs/devel/progress-reporting.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/devel/protocol-overview.html", "method": "same-major semantic node", "sha256": "fe7aff6a941aef6be4870c7704bca095984a81fd5019f420b67c9917f3831028", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/summary": "The mode in which the current VACUUM operation is running. See Section 24.1.5 for details of each mode. Possible values are:\n\nnormal: The operation is performing a standard vacuum. It is neither required to run in aggressive mode nor operating in failsafe mode. aggressive: The operation is running an aggressive vacuum, which must scan every page that is not marked all-frozen. The parameters vacuum_freeze_table_age and vacuum_multixact_freeze_table_age determine when a table requires aggressive vacuuming. failsafe: The vacuum has entered failsafe mode, in which it performs only the minimum work necessary to avoid transaction ID or multixact ID wraparound failure. The parameters vacuum_failsafe_age and vacuum_multixact_failsafe_age determine when the vacuum enters failsafe mode. The vacuum may start in this mode or switch to it while running; the value of the mode column may transition from another mode to failsafe during the operation.", "/versions/20/description/0": "The mode in which the current VACUUM operation is running. See Section 24.1.5 for details of each mode. Possible values are:\n\nnormal: The operation is performing a standard vacuum. It is neither required to run in aggressive mode nor operating in failsafe mode. aggressive: The operation is running an aggressive vacuum, which must scan every page that is not marked all-frozen. The parameters vacuum_freeze_table_age and vacuum_multixact_freeze_table_age determine when a table requires aggressive vacuuming. failsafe: The vacuum has entered failsafe mode, in which it performs only the minimum work necessary to avoid transaction ID or multixact ID wraparound failure. The parameters vacuum_failsafe_age and vacuum_multixact_failsafe_age determine when the vacuum enters failsafe mode. The vacuum may start in this mode or switch to it while running; the value of the mode column may transition from another mode to failsafe during the operation.", "/versions/20/facts/0/label": "View", "/versions/20/facts/1/label": "Field", "/versions/20/facts/2/label": "SQL type", "/versions/20/facts/2/value": "text", "/versions/20/facts/3/label": "Units named in the field definition", "/versions/20/facts/3/value": "Not specified", "/versions/20/facts/4/label": "Reset observation", "/versions/20/facts/4/value": "No stats_reset field is documented for this view", "/versions/20/related/0/label": "pg_stat_progress_vacuum columns", "/versions/20/related/1/label": "Statistics collection and reset functions", "/versions/20/sections/0/title": "View semantics", "/versions/20/sections/1/title": "Collection and reset context", "/versions/20/sections/2/title": "Inspect this field", "/versions/20/sections/0/paragraphs/0": "Whenever VACUUM is running, the pg_stat_progress_vacuum view will contain one row for each backend (including autovacuum worker processes) that is currently vacuuming. The tables below describe the information that will be reported and provide information about how to interpret it. Progress for VACUUM FULL commands is reported via pg_stat_progress_repack, and is also visible via the backwards-compatibility pg_stat_progress_cluster because both VACUUM FULL and CLUSTER rewrite the table, while regular VACUUM only modifies it in place. See Section 27.4.5 and Section 27.4.2.", "/versions/20/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/20/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c6e0ea2527a431936e18fdbc0b47e46eb073ebe785f92c8cdee4682fc111f748"}, "comparison_data": {"view": "pg_stat_progress_vacuum", "field": "mode", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "cbec24d7abf035a81604ce8ace972dd5a4bd3c343cf88ccd071b1eed01b09b4d", "units_mentioned": []}}}, "snapshot": null, "comparison": {"left": "18", "right": "19", "status": "added", "diff": "--- PostgreSQL 18\n+++ PostgreSQL 19\n@@ -1 +1,6 @@\n-\u8be5\u7248\u672a\u6536\u5f55\n+{\n+  \"field\": \"mode\",\n+  \"sql_type\": \"text\",\n+  \"units_mentioned\": [],\n+  \"view\": \"pg_stat_progress_vacuum\"\n+}"}}