pg_locks: who is locking ?

Поиск
Список
Период
Сортировка
От Alexandre Arruda
Тема pg_locks: who is locking ?
Дата
Msg-id 4533D1ED.7050605@aldeiadigital.com.br
обсуждение исходный текст
Ответы Re: pg_locks: who is locking ?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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



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

Предыдущее
От: "John D. Burger"
Дата:
Сообщение: Re: A query planner that learns
Следующее
От: "George Pavlov"
Дата:
Сообщение: Re: datatype preceded by underscore creates array