Query for describe locks

From: paulo matadr <saddoness(at)yahoo(dot)com(dot)br>
To: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Query for describe locks
Date: 2009-02-09 19:12:40
Message-ID: 73347.93461.qm@web52501.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi ALL.
i want refine this query :

select pg_stat_activity.current_query ,
pg_class.relname,
pg_locks.transaction,
pg_locks.mode,
pg_locks.granted,
pg_stat_activity.procpid
from pg_stat_activity,pg_locks
left outer join pg_class on (pg_locks.relation = pg_class.oid)
where pg_locks.pid=pg_stat_activity.procpid
order by pg_locks.mode, pg_class.relname;

for the output is thereby:
"user" "locked" "object " "kind of lock" "who waiting for object"

thankis for all

Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Browse pgsql-general by date

  From Date Subject
Next Message Matt Magoffin 2009-02-09 20:01:44 Re: Out of memory on SELECT in 8.3.5
Previous Message SHARMILA JOTHIRAJAH 2009-02-09 19:11:56 dbi_link help