Monitoring locks - Mailing list pgsql-general

From Himanshu Baweja
Subject Monitoring locks
Date
Msg-id 20050512080524.12473.qmail@web51001.mail.yahoo.com
Whole thread Raw
List pgsql-general
I wanted to see which tables/transaction have acquired or are waiting for which locks....
as far as i know there are two ways to do it....
 
1) pg_locks ::: but we need to continously keep getting data from the table and it also locks lock manager data structures which is not a good thing to do...
 
2) trace_locks,trace_lwlocks ... etc etc.... ::: well for this my server says undefined parameters... so as far as i know i need to rebuild the server with some flag...
 
is there any other better way by which i can get a list of locks acquired and waited for during entire run of my application....
 
thx
Himanshu


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

pgsql-general by date:

Previous
From: Patrick.FICHE@AQSACOM.COM
Date:
Subject: pgadmin on Solaris
Next
From: "Philippe Lang"
Date:
Subject: Delphi 2005, Postgresql, ZEOS & optimistic locking