Re: Alter command getting stuck on a table

Поиск
Список
Период
Сортировка
Искать
От
Laurenz Albe
Тема
Re: Alter command getting stuck on a table
Дата
Msg-id
70527e5e5ca140cd0950c1e8c63e19221a207ddc.camel@cybertec.at
Ответ на
Список
Дерево обсуждения
Alter command getting stuck on a table Shrikant Bhende <shrikantpostgresql@gmail.com>
Re: Alter command getting stuck on a table Laurenz Albe <laurenz.albe@cybertec.at>
Re: Alter command getting stuck on a table Tom Lane <tgl@sss.pgh.pa.us>
Re: Alter command getting stuck on a table Jerry Sievers <gsievers19@comcast.net>
Re: Alter command getting stuck on a table Shrikant Bhende <shrikantpostgresql@gmail.com>
Re: Alter command getting stuck on a table Ron <ronljohnsonjr@gmail.com>
Re: Alter command getting stuck on a table Shrikant Bhende <shrikantpostgresql@gmail.com>
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.

Look for old "active" or "idle in transaction" sessions in "pg_stat_activity"
and see that they get closed.  Then the ALTER TABLE will work fine.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



В списке pgsql-admin по дате отправления
От: Shrikant Bhende
Дата:
От: Tom Lane
Дата:
FAQ