Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group