Re: Query gone wild - Mailing list pgsql-general

From codeWarrior
Subject Re: Query gone wild
Date
Msg-id b1e43d$jmv$1@news.hub.org
Whole thread Raw
In response to Query gone wild  (Garo Hussenjian <garo@xapnet.com>)
List pgsql-general
You might locate the process id with ps.... If someone has a connection on
the DB -- It'll show the IP address of the user and a pid...

--> ps ax | grep postgres


"Garo Hussenjian" <garo@xapnet.com> wrote in message
news:BA5D5658.6E5D%garo@xapnet.com...
> I'm trying to track down a query in a web application that has postgresql
in
> a deadlock. I don't know which query is running because I only see the
> listing in ps aux (for now, anyway)... Is there any way to view the query
> that is being run from knowing a process id?
>
> Garo.
>
> =-=-==-=-=-==
>
> Xapnet Internet Solutions
> 1501 Powell St., Suite N
> Emeryville, CA 94608
>
> Tel - (510) 655-9771
> Fax - (510) 655-9775
> Web - http://www.xapnet.com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster



pgsql-general by date:

Previous
From: charette@writeme.com (Stephane Charette)
Date:
Subject: gp_dump: error in finding the last system oid: ERROR: get_relation_info: Relation 1262 not found
Next
From: "Christian"
Date:
Subject: Re: Unicode error with pgaccess