Re: How to list what queries are running in postgres? - Mailing list pgsql-admin

From Tom Lane
Subject Re: How to list what queries are running in postgres?
Date
Msg-id 3246.1088566642@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to list what queries are running in postgres?  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: How to list what queries are running in postgres?
Re: How to list what queries are running in postgres?
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Stopping vacuum
Next
From: Tom Lane
Date:
Subject: Re: grant execute on many functions