Re: What causes lock??

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What causes lock??
Дата
Msg-id 8365.1123250974@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What causes lock??  (Frank Miles <fpm@u.washington.edu>)
Список pgsql-general
Frank Miles <fpm@u.washington.edu> writes:
> ... By the way, in this forced condition, the rows that show granted='f'
> have blank relname, relation, and database fields :(

Those would be locks on transaction IDs, which is what you see in
pg_locks when someone is blocked on a row-level lock.  (For reasons
of implementation efficiency, we don't record individual row locks
in a way that lets pg_locks see them :-()

This is definitely theorizing in advance of the evidence, but
I'm betting that your problem is due to locking of rows referenced
by foreign keys.  Did you recently add some foreign key constraints
to your database?

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Laura Vance
Дата:
Сообщение: Re: Going beyond sql
Следующее
От: Bricklen Anderson
Дата:
Сообщение: Re: How to write jobs in postgresql