pg_stat_xact_user_functions
Similar to pg_stat_user_functions, but counts only calls during the current transaction (which are not yet included in pg_stat_user_functions).
English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
- columns not enumerated
- true
- derived from
- pg_stat_user_functions
- 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
Definition PG 18
Similar to pg_stat_user_functions, but counts only calls during the current transaction (which are not yet included in pg_stat_user_functions).
Catalog columns
| Column | Type | Nullability | Description |
|---|---|---|---|
| funcid | oid | Nullable | OID of a function |
| schemaname | name | Nullable | Name of the schema this function is in |
| funcname | name | Nullable | Name of this function |
| calls | bigint | Nullable | Number of times this function has been called This view reports counters for the current transaction. |
| total_time | double precision | Nullable | Total time spent in this function and all other functions called by it, in milliseconds This view reports counters for the current transaction. |
| self_time | double precision | Nullable | Total time spent in this function itself, not including other functions called by it, in milliseconds This view reports counters for the current transaction. |
Compare versions
Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · catalog-bilingual-repair:1460dae275cd111d54c249e9f76aeaad945e545a26fe18e616e04b3782777dc8
Text language: en · catalog-bilingual-repair:1460dae275cd111d54c249e9f76aeaad945e545a26fe18e616e04b3782777dc8