Re: Query gone wild - Mailing list pgsql-general

From Neil Conway
Subject Re: Query gone wild
Date
Msg-id 1043864735.534.25.camel@tokyo
Whole thread Raw
In response to Query gone wild  (Garo Hussenjian <garo@xapnet.com>)
Responses Re: Query gone wild
List pgsql-general
On Wed, 2003-01-29 at 12:58, Garo Hussenjian wrote:
> I'm trying to track down a query in a web application that has postgresql in
> a deadlock.

By "deadlock", what exactly do you mean?

> Is there any way to view the query
> that is being run from knowing a process id?

You can use the pg_stat_activity view in PostgreSQL 7.2 and later -- see
the docs for more information:

http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/monitoring-stats.html

Cheers,

Neil


pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: crypt
Next
From: eric soroos
Date:
Subject: Re: ERROR: ExecEvalAggref