Monitor postgres transactions in realtime

I would like to monitor postgres transactions in realtime

Could someone point me in the right direction or toward some libaries