Re: WHo is locking me? - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: WHo is locking me?
Date
Msg-id 4BA24E99020000250002FF13@gw.wicourts.gov
Whole thread Raw
In response to WHo is locking me?  ("Abraham, Danny" <danny_abraham@bmc.com>)
List pgsql-admin
"Abraham, Danny" <danny_abraham@bmc.com> wrote:

>  procpid |                            current_query
>
---------+---------------------------------------------------------------------
>    25936 | <IDLE> in transaction  <== This is the locker

> - What exactly is the locker doing?

At the time you ran that, it wasn't doing anything in the database,
but it had not committed or rolled back the transaction it had
previously started.

> - Can I retrieve the Client PID somewhere (then by process name I
> will dive into the code).

If you're on Linux and this is a TCP connection, netstat should make
that easy.  Are you?

-Kevin

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Missing tsearch2 functions
Next
From: "Vitaly Burshteyn"
Date:
Subject: error