Re: SELECT .. FOR UPDATE: find out who locked a row

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: SELECT .. FOR UPDATE: find out who locked a row
Дата
Msg-id CAKFQuwY3mECA+qiJcOSATxvvrXeEV0OXTk38h7-XNs=5UuvvQA@mail.gmail.com
обсуждение исходный текст
Ответ на SELECT .. FOR UPDATE: find out who locked a row  ("Enrico Thierbach" <eno@open-lab.org>)
Список pgsql-general
On Thu, Mar 15, 2018 at 1:30 PM, Enrico Thierbach <eno@open-lab.org> wrote:

Now I wonder if it is possible, given the id of one of the locked rows in the queue table, to find out which connection/which transaction owns the lock

​I'd start here:​


and the pg_stat_activity view:


The system doesn't really understand your model ID/PK field - the system views and catalogs using system identifiers.

David J.

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

Предыдущее
От: pinker
Дата:
Сообщение: Re: SELECT .. FOR UPDATE: find out who locked a row
Следующее
От: Tiffany Thang
Дата:
Сообщение: Re: psql output result