long_running_transaction_oldest_timestamp
The current maximum transaction age in secondsDimensions:None
Available on:
Prometheus (1)
Interface Metrics (1)
Dimensions:None
Technical Annotations (6)
CLI Commands (2)
SELECT * FROM pg_stat_activity WHERE age(backend_xid) > threshold OR age(backend_xmin) > threshold;diagnosticSELECT pg_terminate_backend(pid);remediationTechnical References (4)
pgAdmincomponentcheck_postgrescomponentpg_cancel_backend()componentpg_stat_activitycomponentRelated Insights (3)
Long-running queries block other operations and hold lockswarning
▸
Long-running transactions hold locks and block other operationswarning
▸
Long-running transactions prevent vacuum from advancing relfrozenxidcritical
▸