{"kind": "metric", "major": "18", "item": {"slug": "pg_stat_activity-query", "name": "pg_stat_activity.query", "name_zh": "", "category": "pg_stat_activity", "summary": "\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002", "aliases": ["query", "pg_stat_activity"], "content_hash": "b8299813ee308e427d2f9647ef4c17466bfbbf332a6ce951e68031ba8f38dea1", "versions": {"10": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/10/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 10 English manual", "sha256": "8b88457ddc21d8cbc59bc88fb9e07a79090419ef77c3d7f05b03e0f66a2bac3f", "language": "en", "original_url": "/docs/10/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/10/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/10/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "650c84376cd9a121c9e1ce1eaeae25c76822d8787d2d622a11b7df698bb85de0", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/10/facts/0/label": "View", "/versions/10/facts/1/label": "Field", "/versions/10/facts/1/value": "query", "/versions/10/facts/2/label": "SQL type", "/versions/10/facts/3/label": "Units named in the field definition", "/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": "731ef8e01810e8187e8a1021101e4a95b8dcd2e390748ee1ef373e993b5f2eb8"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "11": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/11/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 11 English manual", "sha256": "8b7b421aabe5ecaae695cb42a270d7192bfe2bfbd1ac2aa756087c177f734600", "language": "en", "original_url": "/docs/11/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/11/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/11/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "afdbec03a1124f520f30609a83e1a36582909a9b785e0bc2ca420942783138b6", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/11/facts/0/label": "View", "/versions/11/facts/1/label": "Field", "/versions/11/facts/1/value": "query", "/versions/11/facts/2/label": "SQL type", "/versions/11/facts/3/label": "Units named in the field definition", "/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": "05c644a825aba4ba8b7b1bd74d8cfca50d59111087a654c4ab5d57769f48b3ce"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "12": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/12/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 12 English manual", "sha256": "3a764eaa784efc0eed1081cdfc2bf313c91bd17122d66dd16055d8b640320699", "language": "en", "original_url": "/docs/12/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/12/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/12/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "3fdd27fb7bf35d6b64328906673b400eb63fbc55e82a002e1b3634892fe4dfbf", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/12/facts/0/label": "View", "/versions/12/facts/1/label": "Field", "/versions/12/facts/1/value": "query", "/versions/12/facts/2/label": "SQL type", "/versions/12/facts/3/label": "Units named in the field definition", "/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": "294a4e18a8e652ac1d336d094a6e63d526a05379a91932ccde702fe324c86f98"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "13": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/13/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 13 English manual", "sha256": "a8ec0d199d592259f260a41ccb2821e582cd6dae1014a784e1e86203740afcb0", "language": "en", "original_url": "/docs/13/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/13/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/13/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "dde21d5a4f07f0f7eede1e01a1a07ae67b642e81685b2ec73aeabb44eacb9bdb", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/13/facts/0/label": "View", "/versions/13/facts/1/label": "Field", "/versions/13/facts/1/value": "query", "/versions/13/facts/2/label": "SQL type", "/versions/13/facts/3/label": "Units named in the field definition", "/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": "c757d0d8405c28e41e97e24993bc2fa78ecb9891795a53a404d95da559b6f75e"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "14": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/14/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 14 English manual", "sha256": "1852c6205d68e465d08dd8f75e3b6bfdd4a475ee8d79886e2dcff6bff8e2d243", "language": "en", "original_url": "/docs/14/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/14/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/14/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "e3b7d37c0b432480d9e3f26a49e385c1cfe88cc845990186ffd77bafe9966c00", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/14/facts/0/label": "View", "/versions/14/facts/1/label": "Field", "/versions/14/facts/1/value": "query", "/versions/14/facts/2/label": "SQL type", "/versions/14/facts/3/label": "Units named in the field definition", "/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": "6cbc1b035685e40bd9b09370d8242bf00fa5fcdb52afd71ecc3bcf9a9f48b5d6"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "15": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "text"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/15/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 15 English manual", "sha256": "034c0a2e99e6707e637bf4d6cfd819d39eddc1b4b7c1ec2a00f0b4f0fdb0a078", "language": "en", "original_url": "/docs/15/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/15/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/15/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "ce517bc6753db9e26a5f8fb5e8f4f4fff55b5a54a43c890a77e05908e424ba2b", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/15/facts/0/label": "View", "/versions/15/facts/1/label": "Field", "/versions/15/facts/1/value": "query", "/versions/15/facts/2/label": "SQL type", "/versions/15/facts/3/label": "Units named in the field definition", "/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": "a6cfc7cbac22e8eac3743380c568615ace07c836015d81e4c81b03509d79fdd2"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "16": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/16/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 16 English manual", "sha256": "a4c274defe8a41ff2895040cd542b5499063b844669ff3336de1a1317c3fe086", "language": "en", "original_url": "/docs/16/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/16/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/16/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "1e9eda6d47d358757a173aa95a38b32bfc47d4dda766a3655e2d55e692ec79ca", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/16/facts/0/label": "View", "/versions/16/facts/1/label": "Field", "/versions/16/facts/1/value": "query", "/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/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": "eaf2f1ede32d1a40d486110f0b11dc02ff4aff85b11f61a43a77d11c25692ee4"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "17": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/17/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 17 English manual", "sha256": "007af6e8ab39b925963273ec3ba7f06f8ee6fbfaad821f07a1dc78383dbb9b99", "language": "en", "original_url": "/docs/17/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/17/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/17/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "5afa29f0a3210b582883cc2949e9c46e0c18c6d9264651537ba0b7110e042774", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/17/facts/0/label": "View", "/versions/17/facts/1/label": "Field", "/versions/17/facts/1/value": "query", "/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/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": "49b363e650ebc661a071fa7523e8cb8f2f520329dd097c4f48e029b4188e8ae8"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "18": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722", "language": "en", "original_url": "/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "32320d15d5bfb37e361c04f241d62cc371e3dc5d574652f37fc7d1ed59150b68", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/1/value": "query", "/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/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": "fafec33298af7b26c5a98c6e879eef4989d69e5850fb85333cb9fcd93ce5babc"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "19": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, "sources": [{"url": "https://pg.center/docs/19/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 19 English manual", "sha256": "26e1b6632bdf05ebe081987cb60ab4ded526eec7db73e41316fbd69466c494fe", "language": "en", "original_url": "/docs/19/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/19/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/19/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "d2edd561e0869f4c708a511ec439c622a979b7f9295eebe2f649b60ffcfbe42a", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/19/facts/0/label": "View", "/versions/19/facts/1/label": "Field", "/versions/19/facts/1/value": "query", "/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/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": "afc27aa20be372ff866c5901739288ebffd099cb9df6505f3089af1e381f8f20"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "20": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, "sources": [{"url": "https://pg.center/docs/devel/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 20 English manual", "sha256": "dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251", "language": "en", "original_url": "/docs/devel/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/devel/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/devel/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "f19ee4af315c05537ccee31b89cccbe5b6dfbf4d4351ef2f56357cfe5cd5348d", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/20/description/0": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/20/facts/0/label": "View", "/versions/20/facts/1/label": "Field", "/versions/20/facts/1/value": "query", "/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/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": "7d529d760b1255de18294d21d50598bc7dc7b1365248b9c21ca4600c3c4325fa"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}}}, "snapshot": {"view": "pg_stat_activity", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_activity"}, {"label": "\u5b57\u6bb5", "value": "\u67e5\u8be2"}, {"label": "SQL \u7c7b\u578b", "value": "\u6587\u672c"}, {"label": "\u5b57\u6bb5\u5b9a\u4e49\u8bb0\u8f7d\u7684\u5355\u4f4d", "value": "bytes"}, {"label": "\u91cd\u7f6e\u6761\u4ef6", "value": "\u624b\u518c\u672a\u4e3a\u6b64\u89c6\u56fe\u8bb0\u8f7d stats_reset \u5b57\u6bb5"}], "field": "query", "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": "https://pg.center/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722", "language": "en", "original_url": "/docs/18/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW"}], "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 query 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", "signature": "SELECT query FROM pg_catalog.pg_stat_activity;", "documented": true, "description": ["\u6b64\u540e\u7aef\u6700\u8fd1\u4e00\u6b21\u67e5\u8be2\u7684\u6587\u672c\u3002\u5982\u679c state \u4e3a active\uff0c\u6b64\u5b57\u6bb5\u663e\u793a\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u67e5\u8be2\uff1b\u5176\u4ed6\u72b6\u6001\u4e0b\u663e\u793a\u4e0a\u6b21\u6267\u884c\u7684\u67e5\u8be2\u3002\u67e5\u8be2\u6587\u672c\u9ed8\u8ba4\u622a\u65ad\u81f3 1024 \u5b57\u8282\uff0c\u53ef\u901a\u8fc7 track_activity_query_size \u53c2\u6570\u66f4\u6539\u6b64\u503c\u3002"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "source_only": false, "localization": {"status": "complete", "sources": [{"url": "/docs/18/datatype-textsearch.html", "method": "same-major semantic node", "sha256": "32320d15d5bfb37e361c04f241d62cc371e3dc5d574652f37fc7d1ed59150b68", "language": "zh", "matched_nodes": ["#DATATYPE-TEXTSEARCH/p[4]/em[2]"]}, {"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": "Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/1/value": "query", "/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/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": "fafec33298af7b26c5a98c6e879eef4989d69e5850fb85333cb9fcd93ce5babc"}, "comparison_data": {"view": "pg_stat_activity", "field": "query", "sql_type": "text", "units_mentioned": ["bytes"]}, "comparison_hash": "fe77b896e52f9ae21f44149448c055eede55de16ad720b36c50220026956c283", "units_mentioned": ["bytes"]}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}