Re: Lock won't release

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Friedman" <matt(at)sprynewmedia(dot)com>
Cc: "PgSql General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Lock won't release
Date: 2001-02-07 18:44:23
Message-ID: 6904.981571463@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Matt Friedman" <matt(at)daart(dot)ca> writes:
> I have a lock on a table that won't release. I know this seems very unusual
> but there appears to be a severe deadlock and pgsql has not release the
> lock.

> I've tried everything including recreating the db and trying to delete the
> old one. psql wouldn't even let me delete the old db. It says that other
> users are using the database. I'm assuming it's saying this because there's
> a lock on the table.

Instead of an interpretation of what's happening, could we see the exact
commands you are issuing and the exact error messages you get?

Also, what other backends are connected to that DB, and what are they doing?

If there is a dangling lock someplace, restarting the postmaster ought
to get rid of it, but that will destroy all the evidence --- so I'd
recommend not doing that until we understand what's happening.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hunter Hillegas 2001-02-07 18:49:52 Using the JDBC Driver - users: Permission Denied
Previous Message Matt Friedman 2001-02-07 18:06:53 Lock won't release