Like MySQL, there is a way to see all processes in PostgreSQL. It’s one simple command:

SELECT * FROM pg_stat_activity;

Note that if the current_query field keeps coming up empty, you might need to enable stats_command_string in your postgresql.conf.

Enjoy.