Newer versions of PostgreSQL have a 'pg_stat_activity' view to show you who is currently connected to your database system.
By default, this doesn't show you the queries being run.
How do you show that?
Edit your postgresql.conf file and add (or uncomment):
stats_command_string = true
and restart postgresql.
See
official documentation for more information.
(This is practically equivalent to the mysql 'show processlist' command).