Re: Query gone wild

From: Neil Conway <neilc(at)samurai(dot)com>
To: Garo Hussenjian <garo(at)xapnet(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query gone wild
Date: 2003-01-29 18:25:49
Message-ID: 1043864735.534.25.camel@tokyo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message eric soroos 2003-01-29 18:28:44 Re: ERROR: ExecEvalAggref
Previous Message Neil Conway 2003-01-29 18:25:35 Re: crypt