Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > tracking down i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3175 of 3215
Post > Topic >>

tracking down idle transactions in pg_locks

by david@[EMAIL PROTECTED] (David Gardner) Jul 17, 2008 at 06:41 PM

I've been tracking down a problem with idle transactions being left open 
and not being able to vacuum one of my tables. I think I have tracked it 
down to proprietary app, the  problem seems to be that it leaves "idle 
transactions" open.

However the table that we are having problems vacuuming (probably just 
because it is the most active table) is in the  same db, but a different 
scheme not accessed by that app. Could this app still be causing the 
problem?

I did a select on the pg_locks table and filtered by the pid of the idle 
transaction. There were 8 locks, 7 were on tables that the app uses 
however the 8th was of locktype=virtualxid and mode=ExclusiveLock. Could 
this be some sort of global lock?

I have been able to verify that closing the app, does allow us to vacuum 
the table.

-- 
David Gardner


-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 1 Posts in Topic:
tracking down idle transactions in pg_locks
david@[EMAIL PROTECTED]   2008-07-17 18:41:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Sep 8 2:59:06 CDT 2008.