Updated on 2024-09-30 GMT+08:00

PGXC_WORKLOAD_TRANSACTION

PGXC_WORKLOAD_TRANSACTION provides transaction information about workload cgroups on all CNs. Only the system administrator or the preset role gs_role_read_all_stats can access this view. This view is valid only when the real-time resource monitoring function is enabled, that is, when enable_resource_track is on.

Table 1 PGXC_WORKLOAD_TRANSACTION columns

Name

Type

Description

node_name

name

Node name.

workload

name

Workload Cgroup name.

commit_counter

bigint

Number of the commits.

rollback_counter

bigint

Number of rollbacks.

resp_min

bigint

Minimum response time, in microseconds.

resp_max

bigint

Maximum response time, in microseconds.

resp_avg

bigint

Average response time, in microseconds.

resp_total

bigint

Total response time, in microseconds.