{"kind": "metric", "major": "18", "item": {"slug": "pg_stat_xact_sys_tables-idx_scan", "name": "pg_stat_xact_sys_tables.idx_scan", "name_zh": "", "category": "pg_stat_xact_sys_tables", "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "aliases": ["idx_scan", "pg_stat_xact_sys_tables"], "content_hash": "c2385c487b76c895d7350b80e424570fcfd9ce51653286c6ed26f43224c79f57", "versions": {"10": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=10", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.15.7.6.7.2.2.9.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 10 English manual", "sha256": "8b88457ddc21d8cbc59bc88fb9e07a79090419ef77c3d7f05b03e0f66a2bac3f"}, {"url": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "10.23 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "7e002812f3c1be807bf2f17d0e82535001bcaa044bb76be762aa3fcc3fd1f0f3", "archive_sha256": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2", "anchor": "id-1.6.15.7.6.7.2.2.9.1.2", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "cf884834ed32c9ed9446bea488204432defca82b5fccd3075349b7b866653094", "fragment_sha256": "c69c0ab3503d0e83f1ae2b4ddd5b2cc43459e32ff55b032adac7c2b2bf9b545f", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "c1abcb55386975e30d4d67d75806770576b01caceede6a858ff6717266cb520b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "10", "text_hash": "ef5fe700f1ac9c84336e620468f704fa15940ec6e5831a679e2077c57b7920db", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2", "anchor": "id-1.6.15.7.6.7.2.2.9.1.2", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "cf884834ed32c9ed9446bea488204432defca82b5fccd3075349b7b866653094", "fragment_sha256": "c69c0ab3503d0e83f1ae2b4ddd5b2cc43459e32ff55b032adac7c2b2bf9b545f", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "c1abcb55386975e30d4d67d75806770576b01caceede6a858ff6717266cb520b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p> <span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002</p><p> <span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "10", "link_map": {"/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2": "/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p> <span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002</p><p> <span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a251c6cdb73eece5835d72e5bd84577ba6a825d152aef212d6d3fd9d1760fc48", "content_hash": "ef5fe700f1ac9c84336e620468f704fa15940ec6e5831a679e2077c57b7920db", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/10/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "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]/p[4]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/10/facts/0/label": "View", "/versions/10/facts/1/label": "Field", "/versions/10/facts/2/label": "Field evidence", "/versions/10/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/10/facts/3/label": "Expression declared in", "/versions/10/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/10/sections/0/title": "View semantics", "/versions/10/sections/1/title": "Collection and transaction context", "/versions/10/sections/2/title": "Exact source expression", "/versions/10/sections/3/title": "Complete source view definition", "/versions/10/sections/4/title": "Source projection", "/versions/10/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/10/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/10/sections/1/paragraphs/0": "A transaction can also see its own statistics (as yet untransmitted to the collector) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/10/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/10/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "90c368e97f2d811ff54b8cb6c2617cc8aa654d667a560f75634a0f01525e468f", "canonical_center_text_hash": "ef5fe700f1ac9c84336e620468f704fa15940ec6e5831a679e2077c57b7920db"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p> <span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002</p><p> <span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002</p><p><a href=\"/zh/docs/10/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=11", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.15.7.6.7.2.2.9.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 11 English manual", "sha256": "8b7b421aabe5ecaae695cb42a270d7192bfe2bfbd1ac2aa756087c177f734600"}, {"url": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "11.22 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "229f27b752782093d90b09db61dd07c18125e6870751f82a447b5e7c18e906ca", "archive_sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2", "anchor": "id-1.6.15.7.6.7.2.2.9.1.2", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "2bd0ab0ada5d4a95c80dd511d5018532613c2753b6c2debc208355ba0cf80625", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "a7ae6d8cc3733f392f738a319e2d2b1d24d8f8307395a8cbc1ed71f2a7dad30d", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "11", "text_hash": "33eb6a6fa3b249bafb0a334672430dd7bfb3f2fa9ba04376978d63060e92fb4f", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2", "anchor": "id-1.6.15.7.6.7.2.2.9.1.2", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "2bd0ab0ada5d4a95c80dd511d5018532613c2753b6c2debc208355ba0cf80625", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "a7ae6d8cc3733f392f738a319e2d2b1d24d8f8307395a8cbc1ed71f2a7dad30d", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "11", "link_map": {"/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2": "/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c1f30236f2044c6a604fd8ce9dff10d177c77fb5357c500202d47267935db8e2", "content_hash": "33eb6a6fa3b249bafb0a334672430dd7bfb3f2fa9ba04376978d63060e92fb4f", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/11/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "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]/p[4]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/11/facts/0/label": "View", "/versions/11/facts/1/label": "Field", "/versions/11/facts/2/label": "Field evidence", "/versions/11/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/11/facts/3/label": "Expression declared in", "/versions/11/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/11/sections/0/title": "View semantics", "/versions/11/sections/1/title": "Collection and transaction context", "/versions/11/sections/2/title": "Exact source expression", "/versions/11/sections/3/title": "Complete source view definition", "/versions/11/sections/4/title": "Source projection", "/versions/11/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/11/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/11/sections/1/paragraphs/0": "A transaction can also see its own statistics (as yet untransmitted to the collector) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/11/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/11/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "6b1af0cd62880f1100330b7aa7dcfe7a895f43e73ec31b75147b67a071ac81ae", "canonical_center_text_hash": "33eb6a6fa3b249bafb0a334672430dd7bfb3f2fa9ba04376978d63060e92fb4f"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/11/monitoring-stats.html#id-1.6.15.7.6.7.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=12", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.9.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 12 English manual", "sha256": "3a764eaa784efc0eed1081cdfc2bf313c91bd17122d66dd16055d8b640320699"}, {"url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "12.22 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "4d0742763f1659df3cc9971fe734c82ce375a87bcb88c30ace8a4a2e0968f536", "archive_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2", "anchor": "id-1.6.14.7.6.8.2.2.9.1.2", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "1807d9852353a1af2b64d546fb3be93143b4831734c8d432737488e3037ac9f1", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "81eddc0263c8a5be364a08c00361055d8f82bb1b3245ba26e71966d9df3d245e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "12", "text_hash": "a6f6aaa2f9c25aaf1f512819343aa51fd920dbe522c323baded3adb57980bdd1", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2", "anchor": "id-1.6.14.7.6.8.2.2.9.1.2", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "1807d9852353a1af2b64d546fb3be93143b4831734c8d432737488e3037ac9f1", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "81eddc0263c8a5be364a08c00361055d8f82bb1b3245ba26e71966d9df3d245e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "12", "link_map": {"/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2": "/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "bb3f0a595c9dd711942be9200552b740c80d8d91a93f44d300a3797f3288fab2", "content_hash": "a6f6aaa2f9c25aaf1f512819343aa51fd920dbe522c323baded3adb57980bdd1", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/12/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "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]/p[4]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/12/facts/0/label": "View", "/versions/12/facts/1/label": "Field", "/versions/12/facts/2/label": "Field evidence", "/versions/12/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/12/facts/3/label": "Expression declared in", "/versions/12/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/12/sections/0/title": "View semantics", "/versions/12/sections/1/title": "Collection and transaction context", "/versions/12/sections/2/title": "Exact source expression", "/versions/12/sections/3/title": "Complete source view definition", "/versions/12/sections/4/title": "Source projection", "/versions/12/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/12/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/12/sections/1/paragraphs/0": "A transaction can also see its own statistics (as yet untransmitted to the collector) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/12/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/12/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "de7190058667534e01ecac2db5df0fccd0594f14162ce5c75fd57eed9ee44a34", "canonical_center_text_hash": "a6f6aaa2f9c25aaf1f512819343aa51fd920dbe522c323baded3adb57980bdd1"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/12/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=13", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.9.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 13 English manual", "sha256": "a8ec0d199d592259f260a41ccb2821e582cd6dae1014a784e1e86203740afcb0"}, {"url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "13.23 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "a8789c61c5102a10f5f7608b058960f33f228eac756a518e7500790d3f0742b7", "archive_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2", "anchor": "id-1.6.14.7.6.8.2.2.9.1.2", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "57373e7034db8002ff131250ff4fe83a8251455fad5580597598b0863a245ece", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "a26c0680ae7cb9402a4cdcfdfd9c3f21508fdf09f56a0b1e34dbf18b69dff1e6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "13", "text_hash": "a544fad9b12d78b56e3d7e4e64a05183f202c58e527ca8bf340795b1ce2fd7c0", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2", "anchor": "id-1.6.14.7.6.8.2.2.9.1.2", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "57373e7034db8002ff131250ff4fe83a8251455fad5580597598b0863a245ece", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "a26c0680ae7cb9402a4cdcfdfd9c3f21508fdf09f56a0b1e34dbf18b69dff1e6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "13", "link_map": {"/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2": "/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "1dcf848d31d96f29701fe1d7a436c04c57e0bfee29f6087a879ca69ab194f179", "content_hash": "a544fad9b12d78b56e3d7e4e64a05183f202c58e527ca8bf340795b1ce2fd7c0", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/13/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/13/monitoring-stats.html", "method": "same-major semantic node", "sha256": "1afff4ad1a4bc0c7e04a62d13adebcc1d39c30aca969618fab0cca8d0a115a96", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/13/facts/0/label": "View", "/versions/13/facts/1/label": "Field", "/versions/13/facts/2/label": "Field evidence", "/versions/13/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/13/facts/3/label": "Expression declared in", "/versions/13/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/13/sections/0/title": "View semantics", "/versions/13/sections/1/title": "Collection and transaction context", "/versions/13/sections/2/title": "Exact source expression", "/versions/13/sections/3/title": "Complete source view definition", "/versions/13/sections/4/title": "Source projection", "/versions/13/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/13/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/13/sections/1/paragraphs/0": "A transaction can also see its own statistics (as yet untransmitted to the collector) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/13/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/13/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c6769f993d79e3980f8966ff7c8afbc405c9b6efc3ea6cd5e0180877e0d1032e", "canonical_center_text_hash": "a544fad9b12d78b56e3d7e4e64a05183f202c58e527ca8bf340795b1ce2fd7c0"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/13/monitoring-stats.html#id-1.6.14.7.6.8.2.2.9.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=14", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.15.7.6.8.2.2.10.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 14 English manual", "sha256": "1852c6205d68e465d08dd8f75e3b6bfdd4a475ee8d79886e2dcff6bff8e2d243"}, {"url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "14.24 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "2e0e9c86966c478540d73bae289fe7d91581f48f0381ed445539e30828b7179c", "archive_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2", "anchor": "id-1.6.15.7.6.8.2.2.10.1.2", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "5d0b3feda6ee0197d76fdc68b8b0b9837def8844a3463bc79c380c92ca629dbb", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "a32553e05d2f77b5094d9b0a3aad398fd2c3cddc7d6bca33b484424b88290310", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "14", "text_hash": "6a8d56218ee799b48d82c9ff1ccb878df93fbbadfb1561efde5759542a65ba40", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2", "anchor": "id-1.6.15.7.6.8.2.2.10.1.2", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "5d0b3feda6ee0197d76fdc68b8b0b9837def8844a3463bc79c380c92ca629dbb", "fragment_sha256": "3762b68623791265cc34669b9914e712135ba56590e21ac8dd678b9cc88aa2eb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "a32553e05d2f77b5094d9b0a3aad398fd2c3cddc7d6bca33b484424b88290310", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "14", "link_map": {"/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2": "/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "9d46fd1ff01d0e5f5c3ea7f2edfdb2bec1bea722ed0ac9bc85bcd90dbf8a1a9d", "content_hash": "6a8d56218ee799b48d82c9ff1ccb878df93fbbadfb1561efde5759542a65ba40", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/14/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5c1a\u672a\u4f20\u9001\u7ed9\u6536\u96c6\u5668\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/14/monitoring-stats.html", "method": "same-major semantic node", "sha256": "a622383556aa74bc5f0e402d9cb6c1e6ce1d111286c0f4e45f55b81e34d57922", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/14/facts/0/label": "View", "/versions/14/facts/1/label": "Field", "/versions/14/facts/2/label": "Field evidence", "/versions/14/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/14/facts/3/label": "Expression declared in", "/versions/14/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/14/sections/0/title": "View semantics", "/versions/14/sections/1/title": "Collection and transaction context", "/versions/14/sections/2/title": "Exact source expression", "/versions/14/sections/3/title": "Complete source view definition", "/versions/14/sections/4/title": "Source projection", "/versions/14/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/14/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/14/sections/1/paragraphs/0": "A transaction can also see its own statistics (as yet untransmitted to the collector) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/14/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/14/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "aff1524a28952fa72d0c5fb98a82d85f6b4b7010b812c8fe30e08a5fa6c016d0", "canonical_center_text_hash": "6a8d56218ee799b48d82c9ff1ccb878df93fbbadfb1561efde5759542a65ba40"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7edf\u8ba1\u6536\u96c6\u5668</em>\u662f\u4e00\u4e2a\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u670d\u52a1\u5668\u6d3b\u52a8\u4fe1\u606f\u7684\u5b50\u7cfb\u7edf\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5b83\u8fd8\u53ef\u4ee5\u7edf\u8ba1\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u6536\u96c6\u5668\u8fdb\u7a0b\u3002\n</p><p><a href=\"/zh/docs/14/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=15", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.15.7.6.8.2.2.10.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 15 English manual", "sha256": "034c0a2e99e6707e637bf4d6cfd819d39eddc1b4b7c1ec2a00f0b4f0fdb0a078"}, {"url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "15.19 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "5d8a691a81be4384a7cad7becfac241b5aa561df5691b3ba8c937156b936f7df", "archive_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2", "anchor": "id-1.6.15.7.6.8.2.2.10.1.2", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "a1f491ce4744d3b72b0eced7fad7c91762a4a8ba5ce0d61094b0616668450592", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "dd1ded0fe5c5a53b2535749513308c0352f30a28e8b17cd657e2f9510d4b1d59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "15", "text_hash": "6c92f6537945a952a9ead721ef5f4acf2844810af93784a0772a359d17dc0e27", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2", "anchor": "id-1.6.15.7.6.8.2.2.10.1.2", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "a1f491ce4744d3b72b0eced7fad7c91762a4a8ba5ce0d61094b0616668450592", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "dd1ded0fe5c5a53b2535749513308c0352f30a28e8b17cd657e2f9510d4b1d59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "15", "link_map": {"/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2": "/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a6f160682b4a8df00969eda796e0559a9bb7c4745e8404d51b0c0716d488c650", "content_hash": "6c92f6537945a952a9ead721ef5f4acf2844810af93784a0772a359d17dc0e27", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/15/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/15/monitoring-stats.html", "method": "same-major semantic node", "sha256": "373028581d43d13a3f098f997d5912fca6c8c1bf42a129d9336834c119bcaf6b", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/15/facts/0/label": "View", "/versions/15/facts/1/label": "Field", "/versions/15/facts/2/label": "Field evidence", "/versions/15/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/15/facts/3/label": "Expression declared in", "/versions/15/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/15/sections/0/title": "View semantics", "/versions/15/sections/1/title": "Collection and transaction context", "/versions/15/sections/2/title": "Exact source expression", "/versions/15/sections/3/title": "Complete source view definition", "/versions/15/sections/4/title": "Source projection", "/versions/15/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/15/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/15/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/15/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/15/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "04e87ac89eef169d761934f1bc4bc97e1eee537ab160a61a9c16cc36bcfd4d91", "canonical_center_text_hash": "6c92f6537945a952a9ead721ef5f4acf2844810af93784a0772a359d17dc0e27"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/15/monitoring-stats.html#id-1.6.15.7.6.8.2.2.10.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=16", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.15.7.6.8.2.2.14.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 16 English manual", "sha256": "a4c274defe8a41ff2895040cd542b5499063b844669ff3336de1a1317c3fe086"}, {"url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "16.15 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "1c47b3f1172e7ff8a0736d6747cd4487a3e970cc8f437705b1484baf2aae29e0", "archive_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2", "anchor": "id-1.6.15.7.6.8.2.2.14.1.2", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "bc7073c776c27e13a8c84203c68f4913e8ee7601c38364f2b4e397c4851c8e08", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "360ad28b93f48f41eb11b50351686e5ab62a853f7a0959a0b8f1a289fcab7ce4", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "16", "text_hash": "d29405ec9e0e365b613ac07ac4fec9ffaef13c0614885a5ea435aded1b3d6adc", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2", "anchor": "id-1.6.15.7.6.8.2.2.14.1.2", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "bc7073c776c27e13a8c84203c68f4913e8ee7601c38364f2b4e397c4851c8e08", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "360ad28b93f48f41eb11b50351686e5ab62a853f7a0959a0b8f1a289fcab7ce4", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "16", "link_map": {"/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2": "/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a00da85ec7e388571314b9eb0c06982bc72432639a1fa5d73863d2950c8fe82d", "content_hash": "d29405ec9e0e365b613ac07ac4fec9ffaef13c0614885a5ea435aded1b3d6adc", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/16/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/16/monitoring-stats.html", "method": "same-major semantic node", "sha256": "602e708943074767e7aad252e93938422e388dae22bd99fc583e93f7689395ba", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/16/facts/0/label": "View", "/versions/16/facts/1/label": "Field", "/versions/16/facts/2/label": "Field evidence", "/versions/16/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/16/facts/3/label": "Expression declared in", "/versions/16/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/16/sections/0/title": "View semantics", "/versions/16/sections/1/title": "Collection and transaction context", "/versions/16/sections/2/title": "Exact source expression", "/versions/16/sections/3/title": "Complete source view definition", "/versions/16/sections/4/title": "Source projection", "/versions/16/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/16/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/16/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/16/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/16/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "2bf35d7a59fe154b04a7bf4ace72654e47e82d4ff72357bf13871f8d0e10eb01", "canonical_center_text_hash": "d29405ec9e0e365b613ac07ac4fec9ffaef13c0614885a5ea435aded1b3d6adc"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/16/monitoring-stats.html#id-1.6.15.7.6.8.2.2.14.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=17", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.15.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 17 English manual", "sha256": "007af6e8ab39b925963273ec3ba7f06f8ee6fbfaad821f07a1dc78383dbb9b99"}, {"url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "17.11 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "40844d5c419bbf6ccaaeafbe650b1cbd717bdb71ed19805fdaab99b68a8cc098", "archive_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "ad63a74417862b28cba663bd779186633505e5da37845bce5f2e4bf62ee55c2b", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "edf4fc034e894959ed9b30270fbf7c2ef4c91583011b464327be0f37995e6eff", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "17", "text_hash": "1a04e41bd0e8ff1bc5bbf7abd2cfa1d21c1953d9cd7776c7482f2d70eed7d265", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "ad63a74417862b28cba663bd779186633505e5da37845bce5f2e4bf62ee55c2b", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "edf4fc034e894959ed9b30270fbf7c2ef4c91583011b464327be0f37995e6eff", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "17", "link_map": {"/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2": "/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "4beda83dca5d92f7a7eef3f7dbd066b003774af83e6d4e85d647c833b8b48910", "content_hash": "1a04e41bd0e8ff1bc5bbf7abd2cfa1d21c1953d9cd7776c7482f2d70eed7d265", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/17/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/17/monitoring-stats.html", "method": "same-major semantic node", "sha256": "5cd346cc373a5a006b07664d9969d4c630c8ea55dea33b8f3211f061ce43e54f", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/17/facts/0/label": "View", "/versions/17/facts/1/label": "Field", "/versions/17/facts/2/label": "Field evidence", "/versions/17/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/17/facts/3/label": "Expression declared in", "/versions/17/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/17/sections/0/title": "View semantics", "/versions/17/sections/1/title": "Collection and transaction context", "/versions/17/sections/2/title": "Exact source expression", "/versions/17/sections/3/title": "Complete source view definition", "/versions/17/sections/4/title": "Source projection", "/versions/17/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/17/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/17/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/17/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/17/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "9870376a71626e1098acd037af413290f4693911087bbba3a93d7955d5f12d98", "canonical_center_text_hash": "1a04e41bd0e8ff1bc5bbf7abd2cfa1d21c1953d9cd7776c7482f2d70eed7d265"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/17/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=18", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.15.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722"}, {"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "18.6 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972", "archive_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ec6e1f746b65aa4f835996d4a84f319437c2530d5e9cfa76dfd89678178b1b59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "18", "text_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ec6e1f746b65aa4f835996d4a84f319437c2530d5e9cfa76dfd89678178b1b59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "18", "link_map": {"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2": "/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "5bd9a0a998fe46cd3d4288c114cb8a41bbde81c6ca93f2b79b8f46044f85252c", "content_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/18/monitoring-stats.html", "method": "same-major semantic node", "sha256": "ff0b10c5fb4b75c247e38b7ad0e8a50fa0b6ebaa25e68c8c67a1ca972bda40b1", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/2/label": "Field evidence", "/versions/18/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/18/facts/3/label": "Expression declared in", "/versions/18/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/18/sections/0/title": "View semantics", "/versions/18/sections/1/title": "Collection and transaction context", "/versions/18/sections/2/title": "Exact source expression", "/versions/18/sections/3/title": "Complete source view definition", "/versions/18/sections/4/title": "Source projection", "/versions/18/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/18/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/18/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/18/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/18/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c69527efed8fba6404ca94e96f3c4600e98a50dcd1e84326b136355f7c1eccb3", "canonical_center_text_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"view": "pg_stat_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=19", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.16.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 19 English manual", "sha256": "26e1b6632bdf05ebe081987cb60ab4ded526eec7db73e41316fbd69466c494fe"}, {"url": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "19beta4 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "6c3cff3ab39ac39070330c005a73d81f5c55d528f5d42905ad7e4a4a66da4bcf", "archive_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2", "anchor": "id-1.6.14.7.6.8.2.2.16.1.2", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "38f7e14f495b50d93ec5fe73e5630957512a3cbd01aa83c8d7dd33abfeedbb62", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "4e22ebc3f1bba8693dfd3a927007ea6de137775852051a46bd328b0c67cca4d8", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "19", "text_hash": "b1eac3c6a904ecb33f92aea72b1724be95506e8e356c75e4cee3d473d92a1576", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2", "anchor": "id-1.6.14.7.6.8.2.2.16.1.2", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "38f7e14f495b50d93ec5fe73e5630957512a3cbd01aa83c8d7dd33abfeedbb62", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "4e22ebc3f1bba8693dfd3a927007ea6de137775852051a46bd328b0c67cca4d8", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "19", "link_map": {"/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2": "/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "7200d33db008b99625057b2cd79f7e983832bade5c99dc2a32946545b5de2991", "content_hash": "b1eac3c6a904ecb33f92aea72b1724be95506e8e356c75e4cee3d473d92a1576", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/19/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/19/monitoring-stats.html", "method": "same-major semantic node", "sha256": "024434288428f15560d48c78af2e836ca669a4217589cfaeb2f16b72123b501a", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/19/facts/0/label": "View", "/versions/19/facts/1/label": "Field", "/versions/19/facts/2/label": "Field evidence", "/versions/19/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/19/facts/3/label": "Expression declared in", "/versions/19/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/19/sections/0/title": "View semantics", "/versions/19/sections/1/title": "Collection and transaction context", "/versions/19/sections/2/title": "Exact source expression", "/versions/19/sections/3/title": "Complete source view definition", "/versions/19/sections/4/title": "Source projection", "/versions/19/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/19/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/19/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/19/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/19/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1e7f1ac4610bc648be740154770cbb50880cc4775eecec57cd8a82d5e52fd56f", "canonical_center_text_hash": "b1eac3c6a904ecb33f92aea72b1724be95506e8e356c75e4cee3d473d92a1576"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/19/monitoring-stats.html#id-1.6.14.7.6.8.2.2.16.1.2\" 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_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=20", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.17.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 20 English manual", "sha256": "dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251"}, {"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "20devel source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "ebb577ec3a0e99e714aed47fa43364b606a5f914aecf062f9e1c91ffd8c6fa7b", "archive_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2", "anchor": "id-1.6.14.7.6.8.2.2.17.1.2", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "2c8d45a2fe11aec2ee727b94ac68e60b7a0523a1aa2d43629f9368d42f544d40", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "a5b93dde79dd5d8333ad2b08bab859f4daeb9e3d6964a5671f26e6c6f2da5372", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_idx_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "20", "text_hash": "87d098d7833361cfff3794e23ef16212f71a4f1106f7a970d5f0cc29ac26d1db", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2", "anchor": "id-1.6.14.7.6.8.2.2.17.1.2", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "2c8d45a2fe11aec2ee727b94ac68e60b7a0523a1aa2d43629f9368d42f544d40", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "a5b93dde79dd5d8333ad2b08bab859f4daeb9e3d6964a5671f26e6c6f2da5372", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_idx_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "20", "link_map": {"/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2": "/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "8beab6e1d2313c38d5386ac8e19b2c78d9b0c4beb9b5c1423f95364b43d6da1f", "content_hash": "87d098d7833361cfff3794e23ef16212f71a4f1106f7a970d5f0cc29ac26d1db", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/devel/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_idx_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/devel/monitoring-stats.html", "method": "same-major semantic node", "sha256": "1d9a086fb4c6fdd9a56d3a7a28e8c164354ef0bf50c402f06ebe174538f96a4f", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/summary": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/20/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/20/facts/0/label": "View", "/versions/20/facts/1/label": "Field", "/versions/20/facts/2/label": "Field evidence", "/versions/20/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/20/facts/3/label": "Expression declared in", "/versions/20/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/20/sections/0/title": "View semantics", "/versions/20/sections/1/title": "Collection and transaction context", "/versions/20/sections/2/title": "Exact source expression", "/versions/20/sections/3/title": "Complete source view definition", "/versions/20/sections/4/title": "Source projection", "/versions/20/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/20/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/20/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/20/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/20/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "dfb1713a33f8e2682e7765014eedbca3b67f702f2d1f37c08ab978633a72fc7f", "canonical_center_text_hash": "87d098d7833361cfff3794e23ef16212f71a4f1106f7a970d5f0cc29ac26d1db"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint"}, "comparison_hash": "556539c8f0969dcfaa07f772cd71f9bf6aea59bb2bd939aeabf898d5512504a1", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_idx_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/devel/monitoring-stats.html#id-1.6.14.7.6.8.2.2.17.1.2\" 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_xact_sys_tables", "facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "field": "idx_scan", "tables": [], "related": [{"url": "/wiki/catalog/pg_stat_xact_sys_tables/?v=18", "label": "pg_stat_xact_sys_tables \u5b57\u6bb5"}], "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#id-1.6.14.7.6.8.2.2.15.1.2", "path": "monitoring-stats.html", "label": "PostgreSQL 18 English manual", "sha256": "aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722"}, {"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "path": "src/backend/catalog/system_views.sql", "label": "18.6 source archive \u00b7 src/backend/catalog/system_views.sql", "sha256": "418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972", "archive_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ec6e1f746b65aa4f835996d4a84f319437c2530d5e9cfa76dfd89678178b1b59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "sql_type": "", "center_zh": {"title": "pg_stat_xact_sys_tables.idx_scan", "locale": "zh-Hans", "source": {"key": "pg_stat_xact_sys_tables-idx_scan", "locale": "zh-Hans", "version": "18", "text_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283", "collection": "metric", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u89c6\u56fe", "value": "pg_stat_xact_sys_tables"}, {"label": "\u5b57\u6bb5", "value": "idx_scan"}, {"label": "\u5b57\u6bb5\u8bc1\u636e", "value": "\u6e90\u7801\u58f0\u660e\uff1b\u624b\u518c\u672a\u9010\u5217\u5217\u4e3e\u3002"}, {"label": "\u8868\u8fbe\u5f0f\u58f0\u660e\u4f4d\u7f6e", "value": "pg_stat_xact_all_tables"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2", "anchor": "id-1.6.14.7.6.8.2.2.15.1.2", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "monitoring-stats.html", "extraction": "concept-introduction", "source_hash": "0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53", "fragment_sha256": "1be9bd443fc95b9609f883e0865ad0835fb5d2c2cc7b0d5e87a84e4aae73ffcb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "ec6e1f746b65aa4f835996d4a84f319437c2530d5e9cfa76dfd89678178b1b59", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span class=\"productname\">PostgreSQL</span> \u7684<em class=\"firstterm\">\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span class=\"productname\">PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "version": "18", "link_map": {"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2": "/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2"}, "body_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "5bd9a0a998fe46cd3d4288c114cb8a41bbde81c6ca93f2b79b8f46044f85252c", "content_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "SELECT idx_scan FROM pg_catalog.pg_stat_xact_sys_tables;", "tables_zh": [], "documented": false, "description": ["pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002"], "manual_html": "", "manual_path": "/docs/18/monitoring-stats.html", "sections_zh": [{"title": "\u89c6\u56fe\u8bed\u4e49", "paragraphs": ["\u4e0e pg_stat_xact_all_tables \u76f8\u540c\uff0c\u4f46\u4ec5\u663e\u793a\u7cfb\u7edf\u8868\u3002", "\u7c7b\u4f3c\u4e8e pg_stat_all_tables\uff0c\u4f46\u7edf\u8ba1\u5f53\u524d\u4e8b\u52a1\u622a\u81f3\u76ee\u524d\u53d1\u751f\u7684\u64cd\u4f5c\uff08\u5c1a\u672a\u8ba1\u5165 pg_stat_all_tables \u53ca\u76f8\u5173\u89c6\u56fe\uff09\u3002\u6b64\u89c6\u56fe\u4e0d\u5305\u542b\u6d3b\u884c\u6570\u3001\u6b7b\u884c\u6570\u4ee5\u53ca\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u76f8\u5173\u7684\u5217\u3002"]}, {"title": "\u91c7\u96c6\u4e0e\u4e8b\u52a1\u8bed\u4e49", "paragraphs": ["\u4e8b\u52a1\u8fd8\u53ef\u4ee5\u5728\u89c6\u56fe pg_stat_xact_all_tables \u3001 pg_stat_xact_sys_tables \u3001 pg_stat_xact_user_tables \u548c pg_stat_xact_user_functions \u4e2d\u770b\u5230\u81ea\u5df1\u7684\u7edf\u8ba1\u4fe1\u606f\uff08\u5c1a\u672a\u5237\u65b0\u5230\u5171\u4eab\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff09\u3002\u8fd9\u4e9b\u6570\u5b57\u4e0d\u50cf\u4e0a\u9762\u6240\u8ff0\u90a3\u6837\u8d77\u4f5c\u7528\uff1b\u76f8\u53cd\uff0c\u5b83\u4eec\u5728\u4e8b\u52a1\u671f\u95f4\u6301\u7eed\u66f4\u65b0\u3002"]}, {"code": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "title": "\u6e90\u7801\u4e2d\u7684\u539f\u59cb\u8868\u8fbe\u5f0f", "paragraphs": ["\u4e0d\u6839\u636e\u6b64\u8868\u8fbe\u5f0f\u63a8\u65ad\u5404\u5b57\u6bb5\u7684\u5b9a\u4e49\u3001\u5b9e\u9645 SQL \u7c7b\u578b\u3001\u5355\u4f4d\u6216\u91cd\u7f6e\u89c4\u5219\u3002"]}, {"code": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "title": "\u6e90\u7801\u4e2d\u7684\u5b8c\u6574\u89c6\u56fe\u5b9a\u4e49", "paragraphs": []}, {"code": "CREATE VIEW pg_stat_xact_all_tables AS\nSELECT\n            C.oid AS relid,\n            N.nspname AS schemaname,\n            C.relname AS relname,\n            pg_stat_get_xact_numscans(C.oid) AS seq_scan,\n            pg_stat_get_xact_tuples_returned(C.oid) AS seq_tup_read,\n            sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint AS idx_scan,\n            sum(pg_stat_get_xact_tuples_fetched(I.indexrelid))::bigint +\n            pg_stat_get_xact_tuples_fetched(C.oid) AS idx_tup_fetch,\n            pg_stat_get_xact_tuples_inserted(C.oid) AS n_tup_ins,\n            pg_stat_get_xact_tuples_updated(C.oid) AS n_tup_upd,\n            pg_stat_get_xact_tuples_deleted(C.oid) AS n_tup_del,\n            pg_stat_get_xact_tuples_hot_updated(C.oid) AS n_tup_hot_upd,\n            pg_stat_get_xact_tuples_newpage_updated(C.oid) AS n_tup_newpage_upd\n    FROM pg_class C LEFT JOIN\n         pg_index I ON C.oid = I.indrelid\n         LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)\n    WHERE C.relkind IN ('r', 't', 'm', 'p')\n    GROUP BY C.oid, N.nspname, C.relname;", "title": "\u6e90\u7801\u4e2d\u7684\u6295\u5f71\u8868\u8fbe\u5f0f", "paragraphs": ["\u6b64\u89c6\u56fe\u901a\u8fc7 SELECT * \u67e5\u8be2 pg_stat_xact_all_tables\uff1b\u6240\u663e\u793a\u8868\u8fbe\u5f0f\u7531\u540c\u7248\u672c\u7684\u6e90\u89c6\u56fe\u58f0\u660e\u3002"]}], "source_only": true, "source_view": "pg_stat_xact_all_tables", "localization": {"status": "complete", "sources": [{"url": "/docs/18/monitoring-stats.html", "method": "same-major semantic node", "sha256": "ff0b10c5fb4b75c247e38b7ad0e8a50fa0b6ebaa25e68c8c67a1ca972bda40b1", "language": "zh", "matched_nodes": ["#MONITORING-STATS/div[6]/p[4]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Source-defined field pg_stat_xact_sys_tables.idx_scan. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.", "/versions/18/facts/0/label": "View", "/versions/18/facts/1/label": "Field", "/versions/18/facts/2/label": "Field evidence", "/versions/18/facts/2/value": "Source declaration; not individually enumerated by the manual", "/versions/18/facts/3/label": "Expression declared in", "/versions/18/related/0/label": "pg_stat_xact_sys_tables columns", "/versions/18/sections/0/title": "View semantics", "/versions/18/sections/1/title": "Collection and transaction context", "/versions/18/sections/2/title": "Exact source expression", "/versions/18/sections/3/title": "Complete source view definition", "/versions/18/sections/4/title": "Source projection", "/versions/18/sections/0/paragraphs/0": "Same as pg_stat_xact_all_tables, except that only system tables are shown.", "/versions/18/sections/0/paragraphs/1": "Similar to pg_stat_all_tables, but counts actions taken so far within the current transaction (which are not yet included in pg_stat_all_tables and related views). The columns for numbers of live and dead rows and vacuum and analyze actions are not present in this view.", "/versions/18/sections/1/paragraphs/0": "A transaction can also see its own statistics (not yet flushed out to the shared memory statistics) in the views pg_stat_xact_all_tables , pg_stat_xact_sys_tables , pg_stat_xact_user_tables , and pg_stat_xact_user_functions . These numbers do not act as stated above; instead they update continuously throughout the transaction.", "/versions/18/sections/2/paragraphs/0": "No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression.", "/versions/18/sections/4/paragraphs/0": "This view uses SELECT * from pg_stat_xact_all_tables; the displayed expression is declared by that same-version source view."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c69527efed8fba6404ca94e96f3c4600e98a50dcd1e84326b136355f7c1eccb3", "canonical_center_text_hash": "c82e069e3f8062d530e2e09f8d68ed464e29fdf3ed6091ea1d3e12f9102ba283"}, "description_zh": "pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002", "comparison_data": {"view": "pg_stat_xact_sys_tables", "field": "idx_scan", "source_view": "pg_stat_xact_all_tables", "view_definition": "CREATE VIEW pg_stat_xact_sys_tables AS\nSELECT * FROM pg_stat_xact_all_tables\n    WHERE schemaname IN ('pg_catalog', 'information_schema') OR\n          schemaname ~ '^pg_toast';", "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint"}, "comparison_hash": "e92507fa3d76a5f9225fc739f6be01c082ac8f503823a2064b7a02b2f02c47ca", "manual_language": "zh", "units_mentioned": [], "source_expression": "sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint", "description_zh_html": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/zh/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>pg_stat_xact_sys_tables.idx_scan \u7edf\u8ba1\u5b57\u6bb5\u3002</p><dl><dt>\u89c6\u56fe</dt><dd><code>pg_stat_xact_sys_tables</code></dd><dt>\u5b57\u6bb5</dt><dd><code>idx_scan</code></dd></dl><p>\u8be5\u5b57\u6bb5\u7531\u672c\u7248\u672c <code>system_views.sql</code> \u4e2d\u7684\u4e8b\u52a1\u5c40\u90e8\u7edf\u8ba1\u89c6\u56fe\u5b9a\u4e49\uff1b\u4ee5\u4e0b\u4e3a\u6e90\u7801\u8868\u8fbe\u5f0f\uff0c\u672a\u628a\u5b83\u89e3\u91ca\u6210\u5168\u5c40\u7d2f\u8ba1\u7edf\u8ba1\u6216\u8fd0\u884c\u6d4b\u91cf\u3002</p><pre><code>sum(pg_stat_get_xact_numscans(I.indexrelid))::bigint</code></pre><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n<span>PostgreSQL</span> \u7684<em>\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf</em>\u652f\u6301\u6536\u96c6\u548c\u62a5\u544a\u6709\u5173\u670d\u52a1\u5668\u6d3b\u52a8\u7684\u4fe1\u606f\u3002\u76ee\u524d\uff0c\u5bf9\u8868\u548c\u7d22\u5f15\u7684\u8bbf\u95ee\u4f1a\u6309\u78c1\u76d8\u5757\u548c\u884c\u4e24\u79cd\u53e3\u5f84\u8ba1\u6570\u3002\u6bcf\u4e2a\u8868\u4e2d\u7684\u603b\u884c\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2a\u8868\u7684\u6e05\u7406\u548c\u5206\u6790\u64cd\u4f5c\u7684\u4fe1\u606f\u4e5f\u88ab\u8ba1\u6570\u3002\u5982\u679c\u542f\u7528\uff0c\u5bf9\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u8c03\u7528\u548c\u6bcf\u4e2a\u51fd\u6570\u4e2d\u82b1\u8d39\u7684\u603b\u65f6\u95f4\u4e5f\u4f1a\u88ab\u8ba1\u6570\u3002\n</p><p>\n<span>PostgreSQL</span> \u4e5f\u652f\u6301\u62a5\u544a\u5173\u4e8e\u7cfb\u7edf\u5f53\u524d\u6b63\u5728\u53d1\u751f\u7684\u60c5\u51b5\u7684\u52a8\u6001\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u4ed6\u670d\u52a1\u5668\u8fdb\u7a0b\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u786e\u5207\u547d\u4ee4\uff0c\u4ee5\u53ca\u7cfb\u7edf\u4e2d\u5b58\u5728\u54ea\u4e9b\u5176\u4ed6\u8fde\u63a5\u3002\u6b64\u529f\u80fd\u72ec\u7acb\u4e8e\u7d2f\u79ef\u7edf\u8ba1\u7cfb\u7edf\u3002\n</p><p><a href=\"/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.15.1.2\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}