📜  postgres 检查空闲事务 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:37.991000             🧑  作者: Mango

代码示例1
select * 
from pg_stat_activity
where (state = 'idle in transaction')
    and xact_start is not null;