Re: Query gone wild

From: "codeWarrior" <GPatnude(at)adelphia(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Query gone wild
Date: 2003-01-31 15:25:42
Message-ID: b1e43d$jmv$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)xapnet(dot)com> wrote in message
news:BA5D5658(dot)6E5D%garo(at)xapnet(dot)com(dot)(dot)(dot)
> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-01-31 15:30:32 Re: Weird query plans for my queries, causing terrible performance.
Previous Message codeWarrior 2003-01-31 15:22:59 Re: [NOVICE] Perl - Postgres