SELECT usename, application_name, state, query FROM pg_stat_activity WHERE usename='my_user_name';
my_user_name