| От | Tom Lane |
|---|---|
| Тема | Re: Alter command getting stuck on a table |
| Дата | |
| Msg-id | 4965.1578401074@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Alter command getting stuck on a table (Laurenz Albe <laurenz.albe@cybertec.at>) |
| Ответы |
Re: Alter command getting stuck on a table
|
| Список | pgsql-admin |
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Tue, 2020-01-07 at 14:58 +0530, Shrikant Bhende wrote:
>> I am trying to add a column to a table but it's not working, I have also tried
>> reindex and drop on the same table but those commands are also getting stuck.
> There is a concurrent session which has an open transaction which
> holds some lock on the table in question.
Yes, that looks like the cause. The pg_locks view could help you
find the culprit session.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера