Updated on 2024-06-03 GMT+08:00

STAT_USER_FUNCTIONS

Displays statistics about user-defined functions (the function language is not an internal language) in all the schemas of the current node, as shown in Table 1.

Table 1 STAT_USER_FUNCTIONS columns

Name

Type

Description

funcid

oid

OID of a function.

schemaname

name

Schema name.

funcname

name

Rename the customized function.

calls

bigint

Number of times that the function has been called.

total_time

double precision

Total time spent in this function, including other functions called by it (unit: ms).

self_time

double precision

Time spent in this function, excluding other functions called by it (unit: ms).