Re: undefined relations in pg_locks - Mailing list pgsql-sql

From Guillaume Lelarge
Subject Re: undefined relations in pg_locks
Date
Msg-id 47A9BDC7.8090000@lelarge.info
Whole thread Raw
In response to undefined relations in pg_locks  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
List pgsql-sql
Sabin Coanda wrote:
> Hi there,
> 
> I have a procedure where a dead-lock occurs, and I'm trying to find the 
> tables involved in the lock.
> 
> Unfortunatelly, I don't find the related objects of the oids of "relation" 
> field. Also all the fields "classid" and "objid" are null.
> 
> May I suppose there were references to temporary objects ?
> However, how cand I get the related objects involved in this lock ?
> 

Maybe they're not objects of the database you're connected to. You need 
to check the "database" column of pg_locks.

Regards.


-- 
Guillaume. http://www.postgresqlfr.org http://dalibo.com


pgsql-sql by date:

Previous
From: "Sabin Coanda"
Date:
Subject: undefined relations in pg_locks
Next
From: TJ O'Donnell
Date:
Subject: Create Table xtest (like xtype)