From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Danny Abraham <danny_abraham@bmc.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: WHo is locking me?
Date: Thu, 18 Mar 2010 16:02:33 -0500
Message-ID: <4BA24E99020000250002FF13@gw.wicourts.gov> (raw)
In-Reply-To: <2C0926ABD16BB641A8E2F11A54920042142DE2F599@PHXCCRPRD01.adprod.bmc.com>
References: <2C0926ABD16BB641A8E2F11A54920042142DE2F599@PHXCCRPRD01.adprod.bmc.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, danny_abraham@bmc.com
Subject: Re: WHo is locking me?
In-Reply-To: <4BA24E99020000250002FF13@gw.wicourts.gov>
References: <2C0926ABD16BB641A8E2F11A54920042142DE2F599@PHXCCRPRD01.adprod.bmc.com> <4BA24E99020000250002FF13@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox