One of my updates is hanging on a postgres table. I'm guessing if the table or row is locked. Questions: 1. What table can I select from to find the lock? 2. How do I clear the lock? Thanks for your help VJ
> 1. What table can I select from to find the lock? pg_locks shows no rows returned. But the update still hangs. VJ
"vinjvinj" <vinjvinj@gmail.com> writes:
> One of my updates is hanging on a postgres table. I'm guessing if the
> table or row is locked.
>
> Questions:
>
> 1. What table can I select from to find the lock?
> 2. How do I clear the lock?
1pg_locks view, perhaps joined with pg_class and pg_stat_activity
2. Commit all open regular or 2-phase transactions.
> Thanks for your help
>
> VJ
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) Production Database Administrator
305 321-1144 (mobil WWW E-Commerce Consultant
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера