| От | Tom Lane |
|---|---|
| Тема | Re: who has lock on table/row |
| Дата | |
| Msg-id | 1887.1010786464@sss.pgh.pa.us обсуждение |
| Ответ на | who has lock on table/row ("Mir S Islam" <mislam@mindspring.com>) |
| Список | pgsql-sql |
"Mir S Islam" <mislam@mindspring.com> writes:
> Is there a way to find out who(if any) has lock on a table ?
Not at the moment. We need a utility to dump out the contents of the
lock manager's data structures, but no one's got round to it.
> Basically I am
> trying to do an insert update transaction and it is waiting and waitin until
> I hit cancel. Since the application heavily uses transactions/commits I am
> assuming somewhere it is leaving something open because of which the
> following queries are not updating.
Try using "ps" to look for a backend that is sitting in "idle in
transaction" state.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера