{"kind": "metric", "major": "18", "item": {"slug": "pg_stat_activity-state", "name": "pg_stat_activity.state", "name_zh": "", "category": "pg_stat_activity", "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "aliases": ["state", "pg_stat_activity"], "content_hash": "ec31bf29ce1f71019d16c161c0537b23b5bf018bdf9e0ca22fdea839559cf5d5", "versions": {"10": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=10", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/10/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "10.23", "major": "10", "channel": "stable", "revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sources": [{"url": "/docs/10/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 10 English manual", "sha256": "8b88457ddc21d8cbc59bc88fb9e07a79090419ef77c3d7f05b03e0f66a2bac3f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "cf884834ed32c9ed9446bea488204432defca82b5fccd3075349b7b866653094", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5"}, "body_sha256": "9a562c44775fe06322228b91b2a6e5480b6ae56ab1859263aae1eb5027104359", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "10", "text_hash": "ac34a7283d8f34e6400be11c453c05e2fd35438ba30078d7253cd7a90a55e6e2", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "cf884834ed32c9ed9446bea488204432defca82b5fccd3075349b7b866653094", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5"}, "body_sha256": "9a562c44775fe06322228b91b2a6e5480b6ae56ab1859263aae1eb5027104359", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "version": "10", "link_map": {"/zh/docs/10/monitoring-stats.html": "/docs/10/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c8c1316ac2c00b3e20e5f3280dbd958a22beb99e897c3cef3a16b73107f934cb", "content_hash": "ac34a7283d8f34e6400be11c453c05e2fd35438ba30078d7253cd7a90a55e6e2", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002"], "manual_html": "", "manual_path": "/docs/10/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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/10/monitoring-stats.html", "method": "same-major semantic node", "sha256": "881c50196a1774b6cbfd40977523b79f34cd079195f91024d1e3c322c763a8b5", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/div[5]/div[1]/table[0]/tbody[2]/tr[0]/td[1]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Current overall state of this backend. Possible values are: active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/10/facts/0/label": "View", "/versions/10/facts/1/label": "Field", "/versions/10/facts/2/label": "SQL type", "/versions/10/facts/3/label": "Units named in the field definition", "/versions/10/facts/3/value": "Not specified", "/versions/10/facts/4/label": "Reset observation", "/versions/10/facts/4/value": "No stats_reset field is documented for this view", "/versions/10/related/0/label": "pg_stat_activity columns", "/versions/10/related/1/label": "Statistics collection and reset functions", "/versions/10/sections/0/title": "View semantics", "/versions/10/sections/1/title": "Collection and reset context", "/versions/10/sections/2/title": "Inspect this field", "/versions/10/sections/0/paragraphs/0": "One row per server process, showing information related to the current activity of that process, such as state and current query. See pg_stat_activity for details.", "/versions/10/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/10/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "30dafab9d86de637d568843cdc37bbf877f2a22a1f63644eab39dc86b14bdc9b", "canonical_center_text_hash": "ac34a7283d8f34e6400be11c453c05e2fd35438ba30078d7253cd7a90a55e6e2"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=11", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/11/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "stable", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sources": [{"url": "/docs/11/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 11 English manual", "sha256": "8b7b421aabe5ecaae695cb42a270d7192bfe2bfbd1ac2aa756087c177f734600"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "2bd0ab0ada5d4a95c80dd511d5018532613c2753b6c2debc208355ba0cf80625", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1"}, "body_sha256": "682ef43331c2d89a4cfdd9c6170c190b43d55cc9d630f9102ef6a784ca6126b1", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "11", "text_hash": "eb120d580ed29bf52f1773081e4b00ebf5076ce829be8bc1391d21a6d6a09b65", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "2bd0ab0ada5d4a95c80dd511d5018532613c2753b6c2debc208355ba0cf80625", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1"}, "body_sha256": "682ef43331c2d89a4cfdd9c6170c190b43d55cc9d630f9102ef6a784ca6126b1", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/11/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "version": "11", "link_map": {"/zh/docs/11/monitoring-stats.html": "/docs/11/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/11/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "7100c4af064b59dab81c5b01f004fdd3a076802f3414d7f08b4af1ff95b5b151", "content_hash": "eb120d580ed29bf52f1773081e4b00ebf5076ce829be8bc1391d21a6d6a09b65", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002"], "manual_html": "", "manual_path": "/docs/11/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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/11/monitoring-stats.html", "method": "same-major semantic node", "sha256": "0f94440120a340dbcbbfec4d9fd6ea8ad93b9671f759fe80a4f373ba248c864e", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/div[5]/div[1]/table[0]/tbody[2]/tr[0]/td[1]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Current overall state of this backend. Possible values are: active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/11/facts/0/label": "View", "/versions/11/facts/1/label": "Field", "/versions/11/facts/2/label": "SQL type", "/versions/11/facts/3/label": "Units named in the field definition", "/versions/11/facts/3/value": "Not specified", "/versions/11/facts/4/label": "Reset observation", "/versions/11/facts/4/value": "No stats_reset field is documented for this view", "/versions/11/related/0/label": "pg_stat_activity columns", "/versions/11/related/1/label": "Statistics collection and reset functions", "/versions/11/sections/0/title": "View semantics", "/versions/11/sections/1/title": "Collection and reset context", "/versions/11/sections/2/title": "Inspect this field", "/versions/11/sections/0/paragraphs/0": "One row per server process, showing information related to the current activity of that process, such as state and current query. See pg_stat_activity for details.", "/versions/11/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/11/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "671d25124c1be051a55356632e7579ee23c45cad7bd6cfd951d0b64c57d14e10", "canonical_center_text_hash": "eb120d580ed29bf52f1773081e4b00ebf5076ce829be8bc1391d21a6d6a09b65"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/11/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=12", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/12/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "stable", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sources": [{"url": "/docs/12/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 12 English manual", "sha256": "3a764eaa784efc0eed1081cdfc2bf313c91bd17122d66dd16055d8b640320699"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "1807d9852353a1af2b64d546fb3be93143b4831734c8d432737488e3037ac9f1", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49"}, "body_sha256": "14fdadeb8f48a558a07bddd34de7902e8ff7af2f91c76501eb528f9004acf0d3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "12", "text_hash": "d6e84752a6d5e96ec8532dc84902a7e2403f9efaba7f8e476327196b922f74e5", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "1807d9852353a1af2b64d546fb3be93143b4831734c8d432737488e3037ac9f1", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49"}, "body_sha256": "14fdadeb8f48a558a07bddd34de7902e8ff7af2f91c76501eb528f9004acf0d3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/12/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "version": "12", "link_map": {"/zh/docs/12/monitoring-stats.html": "/docs/12/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/12/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "57ee03624a1f1d5858871715e07fee72cbe612577bf4118876118138dd378c1c", "content_hash": "d6e84752a6d5e96ec8532dc84902a7e2403f9efaba7f8e476327196b922f74e5", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002"], "manual_html": "", "manual_path": "/docs/12/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u6709\u5173\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u72b6\u6001\u548c\u5f53\u524d\u67e5\u8be2\u3002\u8be6\u89c1 pg_stat_activity \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 state FROM pg_catalog.pg_stat_activity;", "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/12/monitoring-stats.html", "method": "same-major semantic node", "sha256": "d9fccd3a149dcb1b042346f59f216885cbd5a1cef552dae403a74da45af66cd0", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/div[6]/div[1]/table[0]/tbody[2]/tr[0]/td[1]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Current overall state of this backend. Possible values are: active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/12/facts/0/label": "View", "/versions/12/facts/1/label": "Field", "/versions/12/facts/2/label": "SQL type", "/versions/12/facts/3/label": "Units named in the field definition", "/versions/12/facts/3/value": "Not specified", "/versions/12/facts/4/label": "Reset observation", "/versions/12/facts/4/value": "No stats_reset field is documented for this view", "/versions/12/related/0/label": "pg_stat_activity columns", "/versions/12/related/1/label": "Statistics collection and reset functions", "/versions/12/sections/0/title": "View semantics", "/versions/12/sections/1/title": "Collection and reset context", "/versions/12/sections/2/title": "Inspect this field", "/versions/12/sections/0/paragraphs/0": "One row per server process, showing information related to the current activity of that process, such as state and current query. See pg_stat_activity for details.", "/versions/12/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/12/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "0b1d5ed55d9f770b6a5aa66d6909789d7c933d0093c307ad3de249996f9aa2e5", "canonical_center_text_hash": "d6e84752a6d5e96ec8532dc84902a7e2403f9efaba7f8e476327196b922f74e5"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1aactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002</p><p><a href=\"/zh/docs/12/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=13", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/13/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "stable", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sources": [{"url": "/docs/13/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 13 English manual", "sha256": "a8ec0d199d592259f260a41ccb2821e582cd6dae1014a784e1e86203740afcb0"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "57373e7034db8002ff131250ff4fe83a8251455fad5580597598b0863a245ece", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4"}, "body_sha256": "a666302b4f58aa5e32f976382bbe988c4d4f12dba4c318663b2c4b8324618e4b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "13", "text_hash": "6e979d99b9e974248814568980f81ad4c9e78e243c3843e1362f7b21075a0b1f", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "57373e7034db8002ff131250ff4fe83a8251455fad5580597598b0863a245ece", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4"}, "body_sha256": "a666302b4f58aa5e32f976382bbe988c4d4f12dba4c318663b2c4b8324618e4b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "13", "link_map": {"/zh/docs/13/monitoring-stats.html": "/docs/13/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "4f27d10f0cc8187350a8c65a90f90e10e25e886ede88eda39820d049aaa0969e", "content_hash": "6e979d99b9e974248814568980f81ad4c9e78e243c3843e1362f7b21075a0b1f", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/13/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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/13/monitoring-stats.html", "method": "same-major semantic node", "sha256": "1afff4ad1a4bc0c7e04a62d13adebcc1d39c30aca969618fab0cca8d0a115a96", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[7]/p[2]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Current overall state of this backend. Possible values are:\n\nactive: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/13/facts/0/label": "View", "/versions/13/facts/1/label": "Field", "/versions/13/facts/2/label": "SQL type", "/versions/13/facts/3/label": "Units named in the field definition", "/versions/13/facts/3/value": "Not specified", "/versions/13/facts/4/label": "Reset observation", "/versions/13/facts/4/value": "No stats_reset field is documented for this view", "/versions/13/related/0/label": "pg_stat_activity columns", "/versions/13/related/1/label": "Statistics collection and reset functions", "/versions/13/sections/0/title": "View semantics", "/versions/13/sections/1/title": "Collection and reset context", "/versions/13/sections/2/title": "Inspect this field", "/versions/13/sections/0/paragraphs/0": "The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.", "/versions/13/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/13/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ac12344ba468b9de312055424e125b5f0f6e6a9a6b169767a9db62733a757578", "canonical_center_text_hash": "6e979d99b9e974248814568980f81ad4c9e78e243c3843e1362f7b21075a0b1f"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=14", "label": "pg_stat_activity \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-ACTIVITY-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": "state", "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": "bcceb203227d9acac52e9b196c21092c3d73318a7b6f9f47569a9394c68ccfe6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "14", "text_hash": "2cd8983a6510d97b0c3c1996f4778e8a0cfc18241db005e483208703ccbcbadb", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/monitoring-stats.html#", "anchor": "", "column": "state", "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": "bcceb203227d9acac52e9b196c21092c3d73318a7b6f9f47569a9394c68ccfe6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "14", "link_map": {"/zh/docs/14/monitoring-stats.html": "/docs/14/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "232579f6e7a88f208556afbc36834fad1717ed9e085d64c114c52101a895c60d", "content_hash": "2cd8983a6510d97b0c3c1996f4778e8a0cfc18241db005e483208703ccbcbadb", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/14/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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[7]/p[2]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Current overall state of this backend. Possible values are:\n\nactive: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/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": "No stats_reset field is documented for this view", "/versions/14/related/0/label": "pg_stat_activity 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_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "fc0ed676f36165de0b96ec857442171ab5126de4d38a76fefd4132772cceacb1", "canonical_center_text_hash": "2cd8983a6510d97b0c3c1996f4778e8a0cfc18241db005e483208703ccbcbadb"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=15", "label": "pg_stat_activity \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-ACTIVITY-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": "state", "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": "bfa0beaa6c541b97d37d62e972674605653028268ee6a290976c7eb583a0a000", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "15", "text_hash": "c44863093ac53d698f2cf9832bc085e1eba2359e5eb576aa56f5b654983c0aaf", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/monitoring-stats.html#", "anchor": "", "column": "state", "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": "bfa0beaa6c541b97d37d62e972674605653028268ee6a290976c7eb583a0a000", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "15", "link_map": {"/zh/docs/15/monitoring-stats.html": "/docs/15/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "a35717f9c4d28940e007a4e8edfdadfbe4fd8acd1f53ad174469af9ada36dd04", "content_hash": "c44863093ac53d698f2cf9832bc085e1eba2359e5eb576aa56f5b654983c0aaf", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/15/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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[7]/p[2]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Current overall state of this backend. Possible values are:\n\nactive: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/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": "No stats_reset field is documented for this view", "/versions/15/related/0/label": "pg_stat_activity 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_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "e2afe860d1105ab15d9123dfe91766248c5bdb3c7eb397aa59848d189320fa1a", "canonical_center_text_hash": "c44863093ac53d698f2cf9832bc085e1eba2359e5eb576aa56f5b654983c0aaf"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=16", "label": "pg_stat_activity \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-ACTIVITY-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": "state", "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": "ccff18b91044a2c761d4d1a2f7cff14d4c162dd895b28632d8bd52e3efcfb54a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "16", "text_hash": "066dab062dde2deb548c64b52e8162012c1baf2e591e2dada4a3decd74d3bf5a", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/monitoring-stats.html#", "anchor": "", "column": "state", "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": "ccff18b91044a2c761d4d1a2f7cff14d4c162dd895b28632d8bd52e3efcfb54a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "16", "link_map": {"/zh/docs/16/monitoring-stats.html": "/docs/16/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "38114603275617342badeaac7f8cb559fcb310e67954c31a5e3301e40b6f5445", "content_hash": "066dab062dde2deb548c64b52e8162012c1baf2e591e2dada4a3decd74d3bf5a", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/16/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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[7]/p[2]"]}, {"url": "/docs/16/protocol-overview.html", "method": "same-major semantic node", "sha256": "44bc52e9e7ea6a128300584836e839d6a6b6b161cadff330571034de65b26ac1", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Current overall state of this backend. Possible values are:\n\nactive: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/16/facts/0/label": "View", "/versions/16/facts/1/label": "Field", "/versions/16/facts/2/label": "SQL type", "/versions/16/facts/2/value": "text", "/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": "No stats_reset field is documented for this view", "/versions/16/related/0/label": "pg_stat_activity 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_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "b3b4b7accd800eb8e9a57872726edf343fd3668ef83ecb5ea408abb274aafe5f", "canonical_center_text_hash": "066dab062dde2deb548c64b52e8162012c1baf2e591e2dada4a3decd74d3bf5a"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=17", "label": "pg_stat_activity \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-ACTIVITY-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": "state", "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": "d8412e93c14391b142a259aa1787f1246cff6a4525605092ecde7de2dd638d6d", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "17", "text_hash": "02dc0a62bdafc5fc6aed45a3016f185dce9e68591fa2eb71436a1df8ea7bb0c5", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/monitoring-stats.html#", "anchor": "", "column": "state", "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": "d8412e93c14391b142a259aa1787f1246cff6a4525605092ecde7de2dd638d6d", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "17", "link_map": {"/zh/docs/17/monitoring-stats.html": "/docs/17/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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": "004147f274f7210100195f2088416cdfbe8c2175072c4b89db053c41f87207ea", "content_hash": "02dc0a62bdafc5fc6aed45a3016f185dce9e68591fa2eb71436a1df8ea7bb0c5", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/17/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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[7]/p[2]"]}, {"url": "/docs/17/protocol-overview.html", "method": "same-major semantic node", "sha256": "de94711d992bef74aad52fe8a723d81aa9b37a606d96b711bf9faa999a7bb3f5", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Current overall state of this backend. Possible values are:\n\nactive: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/17/facts/0/label": "View", "/versions/17/facts/1/label": "Field", "/versions/17/facts/2/label": "SQL type", "/versions/17/facts/2/value": "text", "/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": "No stats_reset field is documented for this view", "/versions/17/related/0/label": "pg_stat_activity 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_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "230267ad6f7fb33cad4ae00fc7bd264b231b8f898cf73145f4c71702127c0ecd", "canonical_center_text_hash": "02dc0a62bdafc5fc6aed45a3016f185dce9e68591fa2eb71436a1df8ea7bb0c5"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nactive\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</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>"}, "18": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=18", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/18/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b"}, "body_sha256": "ace3f8b021d1a6eca657844d37517e8d97e408c3ef380cee65aac4836a9f961c", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "18", "text_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b"}, "body_sha256": "ace3f8b021d1a6eca657844d37517e8d97e408c3ef380cee65aac4836a9f961c", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "18", "link_map": {"/zh/docs/18/monitoring-stats.html": "/docs/18/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "3518d7c99b8d63b0996c799088a4e5834dc32f689fa4a04cfd37ee4615c76a62", "content_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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/18/monitoring-stats.html", "method": "same-major semantic node", "sha256": "ff0b10c5fb4b75c247e38b7ad0e8a50fa0b6ebaa25e68c8c67a1ca972bda40b1", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[7]/p[2]"]}, {"url": "/docs/18/protocol-overview.html", "method": "same-major semantic node", "sha256": "3f1aa8bd4dbef58e9a82e8cf4c82829a4df7416cfa83dd61c18e9e25060f22da", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Current overall state of this backend. Possible values are:\n\nstarting: The backend is in initial startup. Client authentication is performed during this phase. active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/2/label": "SQL type", "/versions/18/facts/2/value": "text", "/versions/18/facts/3/label": "Units named in the field definition", "/versions/18/facts/3/value": "Not specified", "/versions/18/facts/4/label": "Reset observation", "/versions/18/facts/4/value": "No stats_reset field is documented for this view", "/versions/18/related/0/label": "pg_stat_activity columns", "/versions/18/related/1/label": "Statistics collection and reset functions", "/versions/18/sections/0/title": "View semantics", "/versions/18/sections/1/title": "Collection and reset context", "/versions/18/sections/2/title": "Inspect this field", "/versions/18/sections/0/paragraphs/0": "The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.", "/versions/18/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/18/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "2ca00a46deb0de648c3a29c03ac6ad0e40ea67d7f3347a4aeac37b39508a8205", "canonical_center_text_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/docs/18/monitoring-stats.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=19", "label": "pg_stat_activity \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/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "source_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "manual_fingerprint": "63afc6091780ed5e52920ff9ef5adb6aa7dfcc82f8f413ed36ad46095788488d", "catalog_fingerprint": "da7a8a4e03b72cd120b91ffdff4265e065ccad9eab9964fc3eb1279a58464eb8"}, "sources": [{"url": "/docs/19/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 19 English manual", "sha256": "650f6d5aceb2bb6fe0ed91640c7292c21e805a6d2912eff129665318c942274c"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "38f7e14f495b50d93ec5fe73e5630957512a3cbd01aa83c8d7dd33abfeedbb62", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c"}, "body_sha256": "679bad4eef02a256fbb323884d3d0bd50c5daf62db78519c467e6e277ccfb880", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "19", "text_hash": "98de038ca1377160ade4eb6400dcb565837f2ca469d2abb435fb162b2597a7ad", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "38f7e14f495b50d93ec5fe73e5630957512a3cbd01aa83c8d7dd33abfeedbb62", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c"}, "body_sha256": "679bad4eef02a256fbb323884d3d0bd50c5daf62db78519c467e6e277ccfb880", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "19", "link_map": {"/zh/docs/19/monitoring-stats.html": "/docs/19/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "3f2fa30f1bcd6d045c38937c95ab81f786f3dd6e327773ab4e5a744c1c9c3b0b", "content_hash": "98de038ca1377160ade4eb6400dcb565837f2ca469d2abb435fb162b2597a7ad", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/19/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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/19/monitoring-stats.html", "method": "same-major semantic node", "sha256": "024434288428f15560d48c78af2e836ca669a4217589cfaeb2f16b72123b501a", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[7]/p[2]"]}, {"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": "Current overall state of this backend. Possible values are:\n\nstarting: The backend is in initial startup. Client authentication is performed during this phase. active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/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_activity 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": "The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "02e529ba29d65adae3b5e5fa82904a1924048b08fb60300734c4e6267b3f1188", "canonical_center_text_hash": "98de038ca1377160ade4eb6400dcb565837f2ca469d2abb435fb162b2597a7ad"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "documented field type and description, source-only view expressions", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "previous_source_revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}}, "20": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=20", "label": "pg_stat_activity \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": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "source_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "manual_fingerprint": "4afd3a8e29953000e176877e161458a2febaeaac5a5e16986595d3acc2418c7d", "catalog_fingerprint": "e519e6916a731ce8fb9bca3edb12410227f73e01ccd43fb6f5fb98276f08985f"}, "sources": [{"url": "/docs/devel/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 20 English manual", "sha256": "12af0ae255e3b04952990efae8e4e9d07926556da23734d34f43b9a37126c84f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "2c8d45a2fe11aec2ee727b94ac68e60b7a0523a1aa2d43629f9368d42f544d40", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235"}, "body_sha256": "74795b1be639a88f5bdd0b51969e744836ca8161e0bd552d18bc218fbd7c71d9", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "20", "text_hash": "1ec44229072aaca0dcfb1aaf679fe56af13e6b3ddab4cbb6ffe253a38cd5a5e4", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "2c8d45a2fe11aec2ee727b94ac68e60b7a0523a1aa2d43629f9368d42f544d40", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235"}, "body_sha256": "74795b1be639a88f5bdd0b51969e744836ca8161e0bd552d18bc218fbd7c71d9", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "20", "link_map": {"/zh/docs/devel/monitoring-stats.html": "/docs/devel/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "81a75e3eeaeeaa3c4fc743d7afddb2ede91ab257d1be18afdf0fe9ecd4b69c4c", "content_hash": "1ec44229072aaca0dcfb1aaf679fe56af13e6b3ddab4cbb6ffe253a38cd5a5e4", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/devel/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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/devel/monitoring-stats.html", "method": "same-major semantic node", "sha256": "1d9a086fb4c6fdd9a56d3a7a28e8c164354ef0bf50c402f06ebe174538f96a4f", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[7]/p[2]"]}, {"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": "Current overall state of this backend. Possible values are:\n\nstarting: The backend is in initial startup. Client authentication is performed during this phase. active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/20/description/0": "Current overall state of this backend. Possible values are:\n\nstarting: The backend is in initial startup. Client authentication is performed during this phase. active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/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_activity 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": "The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.", "/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": "c7a2585748b4d68d3c17a3fc488c3922440b499de8e2c4d3d0c8537229f7f8d1", "canonical_center_text_hash": "1ec44229072aaca0dcfb1aaf679fe56af13e6b3ddab4cbb6ffe253a38cd5a5e4"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "documented field type and description, source-only view expressions", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "previous_source_revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}}}}, "snapshot": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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": "state", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_activity/?v=18", "label": "pg_stat_activity \u5b57\u6bb5"}, {"url": "/docs/18/monitoring-stats.html", "label": "\u7edf\u8ba1\u6536\u96c6\u4e0e\u91cd\u7f6e\u51fd\u6570"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sources": [{"url": "/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b"}, "body_sha256": "ace3f8b021d1a6eca657844d37517e8d97e408c3ef380cee65aac4836a9f961c", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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", "center_zh": {"title": "pg_stat_activity.state", "locale": "zh-Hans", "source": {"key": "pg_stat_activity-state", "locale": "zh-Hans", "version": "18", "text_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "state"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"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"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#", "anchor": "", "column": "state", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "exact-catalog-field", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b"}, "body_sha256": "ace3f8b021d1a6eca657844d37517e8d97e408c3ef380cee65aac4836a9f961c", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "version": "18", "link_map": {"/zh/docs/18/monitoring-stats.html": "/docs/18/monitoring-stats.html"}, "body_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "3518d7c99b8d63b0996c799088a4e5834dc32f689fa4a04cfd37ee4615c76a62", "content_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "SELECT state FROM pg_catalog.pg_stat_activity;", "tables_zh": [], "documented": true, "description": ["\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["pg_stat_activity \u89c6\u56fe\u6bcf\u4e2a\u670d\u52a1\u5668\u8fdb\u7a0b\u5c06\u6709\u4e00\u884c\uff0c\u663e\u793a\u4e0e\u8be5\u8fdb\u7a0b\u5f53\u524d\u6d3b\u52a8\u76f8\u5173\u7684\u4fe1\u606f\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 state FROM pg_catalog.pg_stat_activity;", "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/18/monitoring-stats.html", "method": "same-major semantic node", "sha256": "ff0b10c5fb4b75c247e38b7ad0e8a50fa0b6ebaa25e68c8c67a1ca972bda40b1", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[7]/p[2]"]}, {"url": "/docs/18/protocol-overview.html", "method": "same-major semantic node", "sha256": "3f1aa8bd4dbef58e9a82e8cf4c82829a4df7416cfa83dd61c18e9e25060f22da", "language": "zh", "matched_nodes": ["#PROTOCOL-OVERVIEW/div[9]/p[1]/span[2]/span[0]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Current overall state of this backend. Possible values are:\n\nstarting: The backend is in initial startup. Client authentication is performed during this phase. active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/2/label": "SQL type", "/versions/18/facts/2/value": "text", "/versions/18/facts/3/label": "Units named in the field definition", "/versions/18/facts/3/value": "Not specified", "/versions/18/facts/4/label": "Reset observation", "/versions/18/facts/4/value": "No stats_reset field is documented for this view", "/versions/18/related/0/label": "pg_stat_activity columns", "/versions/18/related/1/label": "Statistics collection and reset functions", "/versions/18/sections/0/title": "View semantics", "/versions/18/sections/1/title": "Collection and reset context", "/versions/18/sections/2/title": "Inspect this field", "/versions/18/sections/0/paragraphs/0": "The pg_stat_activity view will have one row per server process, showing information related to the current activity of that process.", "/versions/18/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/18/sections/2/paragraphs/0": "Example query; no execution result or measured value is asserted."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "2ca00a46deb0de648c3a29c03ac6ad0e40ea67d7f3347a4aeac37b39508a8205", "canonical_center_text_hash": "8d41e3edebcb4b7c986d7202ed78c5ecbb9fd37db1581dcc32e1101b3d4782f7"}, "description_zh": "\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n", "comparison_data": {"view": "pg_stat_activity", "field": "state", "sql_type": "text", "units_mentioned": []}, "comparison_hash": "4fd03f5e3552fa1ffe3a49c383010c83aec17f7c9d735de017882a74667110b3", "manual_language": "zh", "units_mentioned": [], "description_zh_html": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>pg_stat_activity.state \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_activity</code></dd><dt>\u5b57\u6bb5</dt><dd><code>state</code></dd><dt>SQL \u7c7b\u578b</dt><dd><code>text</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u5b9a\u4e49</h3><p>\u8be5\u540e\u7aef\u5f53\u524d\u7684\u603b\u4f53\u72b6\u6001\u3002\u53ef\u80fd\u7684\u503c\u4e3a\uff1a\n\nstarting\uff1a\u540e\u7aef\u6b63\u5904\u4e8e\u521d\u59cb\u542f\u52a8\u9636\u6bb5\u3002\u5ba2\u6237\u7aef\u8ba4\u8bc1\u5728\u6b64\u9636\u6bb5\u6267\u884c\u3002 active\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u67e5\u8be2\u3002idle\uff1a\u540e\u7aef\u6b63\u5728\u7b49\u5f85\u65b0\u7684\u5ba2\u6237\u7aef\u547d\u4ee4\u3002idle in transaction\uff1a\u540e\u7aef\u5904\u4e8e\u4e8b\u52a1\u4e2d\uff0c\u4f46\u5f53\u524d\u6ca1\u6709\u6267\u884c\u67e5\u8be2\u3002idle in transaction (aborted)\uff1a\u8be5\u72b6\u6001\u4e0e idle in transaction \u7c7b\u4f3c\uff0c\u4f46\u4e8b\u52a1\u4e2d\u7684\u67d0\u4e2a\u8bed\u53e5\u5bfc\u81f4\u4e86\u9519\u8bef\u3002fastpath function call\uff1a\u540e\u7aef\u6b63\u5728\u6267\u884c\u4e00\u4e2a\u5feb\u901f\u8def\u5f84\u51fd\u6570\u3002disabled\uff1a\u5982\u679c\u5728\u6b64\u540e\u7aef\u4e2d\u7981\u7528\u4e86 track_activities\uff0c\u5c31\u4f1a\u62a5\u544a\u6b64\u72b6\u6001\u3002\n\n</p><p><a href=\"/docs/18/monitoring-stats.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}