Re: How to list what queries are running in postgres?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: "P(dot)A(dot)M(dot) van Dam" <pam(at)ramoth(dot)xs4all(dot)nl>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to list what queries are running in postgres?
Date: 2004-06-30 03:37:22
Message-ID: 3246.1088566642@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Gaetano Mendola <mendola(at)bigfoot(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-06-30 03:45:14 Re: grant execute on many functions
Previous Message Tom Lane 2004-06-30 02:41:47 Re: Stopping vacuum