Clearing locks - Mailing list pgsql-general

From Edwin New
Subject Clearing locks
Date
Msg-id E6A007F0BF85E34CA87F232DA233A5EC2CE626@itexch4.toll.com.au
Whole thread Raw
Responses Re: Clearing locks
List pgsql-general

I am using postgreSQL version 8 on Solaris 9.

 

I have encountered a situation where a java process is dying but leaving locks active.  When I restart the process, it gets a new connection, but can't proceed as the previous lock is still active.

 

How can I, as DBA, clear a lock / roll back an incomplete transaction without access to the connection that created the lock?  All I've been able to do is a complete stop/start of the database, but that is obviously sub-optimal.

 

Thanks,

Edwin New
Software Developer

Toll - Integrated Business Systems

43 - 63 Princes Highway,
Doveton,  VIC.  3175

Ph:     03 8710 0858
Fax:    03 9793 3970
Mobile: 0417 341 074
Email:  edwin_new@toll.com.au

"This message is written in FORTRAN until you look at it."

 

pgsql-general by date:

Previous
From: Carlos Moreno
Date:
Subject: Re: Encoding-related errors when moving from 7.3 to 8.0.1
Next
From: Neil Conway
Date:
Subject: Re: Clearing locks