{"Entry":{"collection":"catalog","key":"pg_stat_user_functions","name":"pg_stat_user_functions","aliases":[],"metadata":{"changed_in":["9.2","19"],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"8.3","order":false,"removed":[],"status":"added","to":"8.4","types":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"8.4","order":false,"removed":[],"status":"coverage","to":"9.0","types":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.1","listing":[],"order":false,"removed":[],"status":"changed","to":"9.2","types":[{"from":"bigint","name":"self_time","to":"double precision"},{"from":"bigint","name":"total_time","to":"double precision"}],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"12","listing":[],"order":false,"removed":[],"status":"reworded","to":"13","types":[],"unlisted":[]},{"added":["stats_reset"],"attributes":[],"description_changed":false,"descriptions":[],"from":"18","listing":[],"order":false,"removed":[],"status":"changed","to":"19","types":[],"unlisted":[]}],"column_count":7,"content_hash":"df9683a35cc36af3b11a0ff3d7ab3544281d9f5e3435d1c911dfbb65283f77f6","derived_content_hash":"678ba41265827aade6e6d288060c1b7f2d84b5e5f944a087f4dbcb8174a8d421","documentation_refresh":{"batch":"20261113","original_source_rev":"catalog-bilingual-repair:03a123b28882369b887c0b69fdc856029d664fd834099adf0e75f8757bf5811b","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.4","imported_at":"2026-09-30T00:40:56.017554+08:00","kind":"statistics","last_version":"20","name":"pg_stat_user_functions","position":112,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"relation_oid":null,"relkind":"v","shared":false,"source_rev":"catalog-bilingual-repair:03a123b28882369b887c0b69fdc856029d664fd834099adf0e75f8757bf5811b","summary":"The pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function.","summary_zh":"pg_stat_user_functions 视图将为每一个被追踪的函数包含一行，该行显示有关该函数执行的统计信息。track_functions 参数控制到底哪些函数被跟踪。"}},"Definition":{"Collection":"catalog","Key":"pg_stat_user_functions","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_stat_user_functions","SourceRevision":"catalog-bilingual-repair:03a123b28882369b887c0b69fdc856029d664fd834099adf0e75f8757bf5811b","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"OID of a function","description_zh":"函数的 OID","documented":true,"documented_name":"funcid","hidden":false,"name":"funcid","not_null":false,"references":"","type":"oid","type_modifier":-1,"type_oid":26,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"Name of the schema this function is in","description_zh":"这个函数所在的模式的名称","documented":true,"documented_name":"schemaname","hidden":false,"name":"schemaname","not_null":false,"references":"","type":"name","type_modifier":-1,"type_oid":19,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"Name of this function","description_zh":"这个函数的名称","documented":true,"documented_name":"funcname","hidden":false,"name":"funcname","not_null":false,"references":"","type":"name","type_modifier":-1,"type_oid":19,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"Number of times this function has been called","description_zh":"这个函数已经被调用的次数","documented":true,"documented_name":"calls","hidden":false,"name":"calls","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"Total time spent in this function and all other functions called by it, in milliseconds","description_zh":"在这个函数以及它所调用的其他函数中花费的总时间，以毫秒计","documented":true,"documented_name":"total_time","hidden":false,"name":"total_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"Total time spent in this function itself, not including other functions called by it, in milliseconds","description_zh":"在这个函数本身花费的总时间，不包括被它调用的其他函数，以毫秒计","documented":true,"documented_name":"self_time","hidden":false,"name":"self_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"}],"description":"The pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function. The track_functions parameter controls exactly which functions are tracked.","description_zh":"pg_stat_user_functions 视图将为每一个被追踪的函数包含一行，该行显示有关该函数执行的统计信息。track_functions 参数控制到底哪些函数被跟踪。","description_zh_html":"\u003cp\u003epg_stat_user_functions 视图将为每一个被追踪的函数包含一行，该行显示有关该函数执行的统计信息。track_functions 参数控制到底哪些函数被跟踪。\u003c/p\u003e\u003cdiv class=\"table\" id=\"PG-STAT-USER-FUNCTIONS-VIEW\"\u003e\u003cp class=\"title\"\u003e\u003cstrong\u003e表 27.34. \u003ccode class=\"structname\"\u003epg_stat_user_functions\u003c/code\u003e 视图\u003c/strong\u003e\u003c/p\u003e\u003cdiv class=\"table-contents\"\u003e\u003ctable border=\"1\" class=\"table\" summary=\"pg_stat_user_functions 视图\"\u003e\u003ccolgroup\u003e\u003ccol/\u003e\u003c/colgroup\u003e\u003cthead\u003e\u003ctr\u003e\u003cth class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n       列类型\n      \u003c/p\u003e\n\u003cp\u003e\n       描述\n      \u003c/p\u003e\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\u003ctbody\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003efuncid\u003c/code\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       函数的 OID\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eschemaname\u003c/code\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       这个函数所在的模式的名称\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003efuncname\u003c/code\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       这个函数的名称\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003ecalls\u003c/code\u003e \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       这个函数已经被调用的次数\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003etotal_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       在这个函数以及它所调用的其他函数中花费的总时间，以毫秒计\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd class=\"catalog_table_entry\"\u003e\u003cp class=\"column_definition\"\u003e\n\u003ccode class=\"structfield\"\u003eself_time\u003c/code\u003e \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e\n\u003c/p\u003e\n\u003cp\u003e\n       在这个函数本身花费的总时间，不包括被它调用的其他函数，以毫秒计\n      \u003c/p\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/tbody\u003e\u003c/table\u003e\u003c/div\u003e\u003c/div\u003e","doc":{"anchor":"PG-STAT-USER-FUNCTIONS-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","slug":"18"},"documentation_revision":{"inputs":[{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","version":"18.7"},{"file":"monitoring-stats.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"1ddb6576fe569e029a1c776c82e7add6be8e4f41705bcd8f66f4347fe23372b6","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"kind":"statistics","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["funcid","schemaname","funcname","calls","total_time","self_time"],"runtime_verified":false,"source":"english-manual","sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"monitoring-stats.html","sha256":"0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:75025596ce1ba1eac56711e4679ba5f91a61e2fc8e773b682dd9f8ce345b82cb","version":"18"}],"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"PG-STAT-USER-FUNCTIONS-VIEW","file":"monitoring-stats.html","lang":"en","sha256":"a97e4aa05484b41cec1f4c9b0b9c5a083596a056982e5d5ba0db1dd8d49961fb","slug":"18"},"sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"monitoring-stats.html","sha256":"0274aac7991450316bcf7be44635653b6d896fb00e321242c1b6674cb05c2e53","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:75025596ce1ba1eac56711e4679ba5f91a61e2fc8e773b682dd9f8ce345b82cb","version":"18"}]},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["funcid","schemaname","funcname","calls","total_time","self_time"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_stat_user_functions","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_stat_user_functions","Summary":"The pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function. The track_functions parameter controls exactly which functions are tracked.","BodyHTML":"\u003cp\u003eThe pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function. The track_functions parameter controls exactly which functions are tracked.\u003c/p\u003e","SourceRevision":"catalog-bilingual-repair:03a123b28882369b887c0b69fdc856029d664fd834099adf0e75f8757bf5811b","ContentHash":"82b1f1140ea34150408d9fda9204214b79b817ae9f8453b24cbd7952cdc6c2ff","Payload":{"columns":[{"array_dimensions":0,"attnum":1,"description":"OID of a function","description_zh":"函数的 OID","documented":true,"documented_name":"funcid","hidden":false,"name":"funcid","not_null":false,"references":"","type":"oid","type_modifier":-1,"type_oid":26,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"Name of the schema this function is in","description_zh":"这个函数所在的模式的名称","documented":true,"documented_name":"schemaname","hidden":false,"name":"schemaname","not_null":false,"references":"","type":"name","type_modifier":-1,"type_oid":19,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"Name of this function","description_zh":"这个函数的名称","documented":true,"documented_name":"funcname","hidden":false,"name":"funcname","not_null":false,"references":"","type":"name","type_modifier":-1,"type_oid":19,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"Number of times this function has been called","description_zh":"这个函数已经被调用的次数","documented":true,"documented_name":"calls","hidden":false,"name":"calls","not_null":false,"references":"","type":"bigint","type_modifier":-1,"type_oid":20,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"Total time spent in this function and all other functions called by it, in milliseconds","description_zh":"在这个函数以及它所调用的其他函数中花费的总时间，以毫秒计","documented":true,"documented_name":"total_time","hidden":false,"name":"total_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"Total time spent in this function itself, not including other functions called by it, in milliseconds","description_zh":"在这个函数本身花费的总时间，不包括被它调用的其他函数，以毫秒计","documented":true,"documented_name":"self_time","hidden":false,"name":"self_time","not_null":false,"references":"","type":"double precision","type_modifier":-1,"type_oid":701,"zh_from":"same-version-manual"}],"description":"The pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function. The track_functions parameter controls exactly which functions are tracked."}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
