pg_locks: who is locking ?

From: Alexandre Arruda <alepaes(at)aldeiadigital(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_locks: who is locking ?
Date: 2006-10-16 18:39:41
Message-ID: 4533D1ED.7050605@aldeiadigital.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

My Database have a lot of locks not granted every moments in a day.

Can I create a view that returns someting like this ?

User Granted Table Who_is_locking_me PID
---- ------- ----- ----------------- ---
joe f foo frank 1212
jeff f foo frank 1313
ann f foo frank 1414
frank t foo 1111
(...)

(Or the locked transactions, if the table cold't be retrived)

pg_locks view does not give me WHO is locking...

Best regards,

Alexandre

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harpreet Dhaliwal 2006-10-16 18:47:21 difference b/w text and varchar datatypes
Previous Message Jeff Davis 2006-10-16 18:32:41 Re: Fast backup/restore