Re: undefined relations in pg_locks

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: undefined relations in pg_locks
Дата
Msg-id 47A9BDC7.8090000@lelarge.info
обсуждение исходный текст
Ответ на undefined relations in pg_locks  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список 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 по дате отправления:

Предыдущее
От: "Sabin Coanda"
Дата:
Сообщение: undefined relations in pg_locks
Следующее
От: TJ O'Donnell
Дата:
Сообщение: Create Table xtest (like xtype)