Postgres vérifie la transaction inactive

select * 
from pg_stat_activity
where (state = 'idle in transaction')
    and xact_start is not null;
Relieved Reindeer