System Catalogs / Statistics views
pg_stat_user_functions
Read the PG 18 manualThe pg_stat_user_functions view will contain one row for each tracked function, showing statistics about executions of that function.
Reading PG 18current·documented in 19 of 24 versions, 8.4 to 20
- Kind
- Statistics views
- Columns in this snapshot
- 6
- Definition source
- English manual
- Metadata snapshot
- 18.6
Columns 6
As listed in the PostgreSQL 18 manual.
| Column | Type | Description / reference |
|---|---|---|
funcid | oid | OID of a function |
schemaname | name | Name of the schema this function is in |
funcname | name | Name of this function |
calls | bigint | Number of times this function has been called |
total_time | double precision | Total time spent in this function and all other functions called by it, in milliseconds |
self_time | double precision | Total time spent in this function itself, not including other functions called by it, in milliseconds |
Column history across versions
Version history 5
Definition snapshot: english-manuals:75025596ce1ba1eac56711e4679… · English manual source