{"Entry":{"collection":"metric","key":"pg_stat_xact_user_functions-total_time","name":"pg_stat_xact_user_functions.total_time","aliases":["total_time","pg_stat_xact_user_functions"],"metadata":{"aliases":["total_time","pg_stat_xact_user_functions"],"category":"pg_stat_xact_user_functions","content_hash":"f8670aa86b9952b54c15ef0c0b6293395653fd5fca2f2aab5da1060017e86328","imported_at":"2026-09-30T00:40:46.710535+08:00","name":"pg_stat_xact_user_functions.total_time","name_zh":"","slug":"pg_stat_xact_user_functions-total_time","summary":"Source-defined field pg_stat_xact_user_functions.total_time. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below."}},"Definition":{"Collection":"metric","Key":"pg_stat_xact_user_functions-total_time","SourceDatabase":"center","Version":"18","SourceTable":"statistics_metric","SourceKey":"pg_stat_xact_user_functions-total_time","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"comparison_data":{"field":"total_time","source_expression":"pg_stat_get_xact_function_total_time(P.oid)","source_view":"pg_stat_xact_user_functions","view":"pg_stat_xact_user_functions","view_definition":"CREATE VIEW pg_stat_xact_user_functions AS\nSELECT\n            P.oid AS funcid,\n            N.nspname AS schemaname,\n            P.proname AS funcname,\n            pg_stat_get_xact_function_calls(P.oid) AS calls,\n            pg_stat_get_xact_function_total_time(P.oid) AS total_time,\n            pg_stat_get_xact_function_self_time(P.oid) AS self_time\n    FROM pg_proc P LEFT JOIN pg_namespace N ON (N.oid = P.pronamespace)\n    WHERE P.prolang != 12  -- fast check to eliminate built-in functions\n          AND pg_stat_get_xact_function_calls(P.oid) IS NOT NULL;"},"comparison_hash":"125233cd7e1c55aaafd85b65659386c6d433b182257639b5651b248ce4eeb354","description":["Source-defined field pg_stat_xact_user_functions.total_time. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below."],"documented":false,"facts":[{"label":"View","value":"pg_stat_xact_user_functions"},{"label":"Field","value":"total_time"},{"label":"Field evidence","value":"Source declaration; not individually enumerated by the manual"},{"label":"Expression declared in","value":"pg_stat_xact_user_functions"}],"field":"total_time","manual_html":"","manual_path":"/docs/18/monitoring-stats.html","related":[{"label":"pg_stat_xact_user_functions columns","url":"/wiki/catalog/pg_stat_xact_user_functions/?v=18"}],"release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[{"paragraphs":["Similar to pg_stat_user_functions, but counts only calls during the current transaction (which are not yet included in pg_stat_user_functions)."],"title":"View semantics"},{"paragraphs":["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."],"title":"Collection and transaction context"},{"code":"pg_stat_get_xact_function_total_time(P.oid)","paragraphs":["No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression."],"title":"Exact source expression"},{"code":"CREATE VIEW pg_stat_xact_user_functions AS\nSELECT\n            P.oid AS funcid,\n            N.nspname AS schemaname,\n            P.proname AS funcname,\n            pg_stat_get_xact_function_calls(P.oid) AS calls,\n            pg_stat_get_xact_function_total_time(P.oid) AS total_time,\n            pg_stat_get_xact_function_self_time(P.oid) AS self_time\n    FROM pg_proc P LEFT JOIN pg_namespace N ON (N.oid = P.pronamespace)\n    WHERE P.prolang != 12  -- fast check to eliminate built-in functions\n          AND pg_stat_get_xact_function_calls(P.oid) IS NOT NULL;","paragraphs":[],"title":"Complete source view definition"}],"signature":"SELECT total_time FROM pg_catalog.pg_stat_xact_user_functions;","source_expression":"pg_stat_get_xact_function_total_time(P.oid)","source_only":true,"source_view":"pg_stat_xact_user_functions","sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.21.1.2"},{"archive_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","label":"18.6 source archive · src/backend/catalog/system_views.sql","path":"src/backend/catalog/system_views.sql","sha256":"418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"}],"sql_type":"","tables":[],"units_mentioned":[],"view":"pg_stat_xact_user_functions"},"ManualEvidence":{"manual_path":"/docs/18/monitoring-stats.html","release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#id-1.6.14.7.6.8.2.2.21.1.2"},{"archive_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","label":"18.6 source archive · src/backend/catalog/system_views.sql","path":"src/backend/catalog/system_views.sql","sha256":"418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_xact_user_functions-total_time","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_stat_xact_user_functions.total_time","Summary":"Source-defined field pg_stat_xact_user_functions.total_time. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.","BodyHTML":"\u003cp\u003eSource-defined field pg_stat_xact_user_functions.total_time. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below.\u003c/p\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"e4c50daf1b31c87f146e51279cc610b0dee004932afe019820dbfdcb749e31f4","Payload":{"description":["Source-defined field pg_stat_xact_user_functions.total_time. The same-version manual describes this view but does not enumerate this column; the exact SQL expression is retained below."],"manual_html":"","related":[{"label":"pg_stat_xact_user_functions columns","url":"/wiki/catalog/pg_stat_xact_user_functions/?v=18"}],"sections":[{"paragraphs":["Similar to pg_stat_user_functions, but counts only calls during the current transaction (which are not yet included in pg_stat_user_functions)."],"title":"View semantics"},{"paragraphs":["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."],"title":"Collection and transaction context"},{"code":"pg_stat_get_xact_function_total_time(P.oid)","paragraphs":["No per-field definition, effective SQL type, unit, or reset rule is inferred from this expression."],"title":"Exact source expression"},{"code":"CREATE VIEW pg_stat_xact_user_functions AS\nSELECT\n            P.oid AS funcid,\n            N.nspname AS schemaname,\n            P.proname AS funcname,\n            pg_stat_get_xact_function_calls(P.oid) AS calls,\n            pg_stat_get_xact_function_total_time(P.oid) AS total_time,\n            pg_stat_get_xact_function_self_time(P.oid) AS self_time\n    FROM pg_proc P LEFT JOIN pg_namespace N ON (N.oid = P.pronamespace)\n    WHERE P.prolang != 12  -- fast check to eliminate built-in functions\n          AND pg_stat_get_xact_function_calls(P.oid) IS NOT NULL;","paragraphs":[],"title":"Complete source view definition"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
