Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:> Even easier:> SELECT * FROM pg_stat_activity;
But note you must enable stats_command_string to make this very useful.
regards, tom lane