From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mir S Islam <mislam@mindspring.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: who has lock on table/row
Date: Fri, 11 Jan 2002 17:01:04 -0500
Message-ID: <1887.1010786464@sss.pgh.pa.us> (raw)
In-Reply-To: <001301c19585$28c36e90$0100a8c0@sjc.mindspring.net>
References: <001301c19585$28c36e90$0100a8c0@sjc.mindspring.net>
"Mir S Islam" <mislam@mindspring.com> writes:
> Is there a way to find out who(if any) has lock on a table ?
Not at the moment. We need a utility to dump out the contents of the
lock manager's data structures, but no one's got round to it.
> Basically I am
> trying to do an insert update transaction and it is waiting and waitin until
> I hit cancel. Since the application heavily uses transactions/commits I am
> assuming somewhere it is leaving something open because of which the
> following queries are not updating.
Try using "ps" to look for a backend that is sitting in "idle in
transaction" state.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mislam@mindspring.com
Subject: Re: who has lock on table/row
In-Reply-To: <1887.1010786464@sss.pgh.pa.us>
* 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