Long running DDL statements blocking all queries

Поиск
Список
Период
Сортировка
От Ashu Pachauri
Тема Long running DDL statements blocking all queries
Дата
Msg-id CA+C_EDi67daRmVAKVEdh1CP0EUL6deLV-ON4nB5rst1WNx6w6g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Long running DDL statements blocking all queries  (Fabio Pardi <f.pardi@portavita.eu>)
Список pgsql-general
We have been using Postgres 9.5.12 behind PGBouncer and facing some weird issues. Whenever we running long running DDL statements (e.g. 'add index concurently' or 'Alter table alter column type'), after some time, we start seeing that almost every query in our application starts getting blocked.
I understand that the operations I mentioned cab be unsafe, but the queries being blocked are on completely unrelated tables.  I used the instructions given on Postgres wiki (https://wiki.postgresql.org/wiki/Lock_Monitoring) to correlate the blocking and blocked statements and there seems to be absolutely no correlation.

Thanks,
Ashu

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

Предыдущее
От: Nicolas Seinlet
Дата:
Сообщение: Sort is generating rows
Следующее
От: Fabio Pardi
Дата:
Сообщение: Re: Long running DDL statements blocking all queries