Re: Exclusive row locks not release - Mailing list pgsql-general

From Mark van Leeuwen
Subject Re: Exclusive row locks not release
Date
Msg-id 4F19152C.1000705@internode.on.net
Whole thread Raw
In response to Re: Exclusive row locks not release  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 20/01/2012 4:40 PM, Tom Lane wrote:
> Mark van Leeuwen<markvl@internode.on.net>  writes:
>> I have a case where exclusive row locks have been placed on a table and
>> I don't what process has the locks or how they might be released.
>> The locks are still there even after I have restarted the database.
> Uncommitted prepared transaction, perhaps?  Look into pg_prepared_xacts.
>
>             regards, tom lane
>
Yes, that was it. Don't have much experience with Postgresql - had
expected all locks would have been released by stopping the database.

I used ROLLBACK PREPARED transaction_id to remove the locks.

Thanks for your help,
Mark

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Exclusive row locks not release
Next
From: "P. Broennimann"
Date:
Subject: dblink (INSERT ..... RETURNING)