Gaetano Mendola <mendola@bigfoot.com> writes:
> P.A.M. van Dam wrote:
>> I'm looking for a command or method to find out what queries are
>> currently being serviced by the database.
> select * from pg_stat_activity;
... having first remembered to turn on stats_command_string; and
thou shalt also be superuser.
[ anybody else remember Monty Python's scriptures concerning the
Holy Hand Grenade? ]
regards, tom lane