Postgres Periksa Transaksi Idle

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