Re: Locks under the hood on re-mat and dropping triggers

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Locks under the hood on re-mat and dropping triggers
Дата
Msg-id 344acccba555f6a080e5937d7c6bb7af482d8f75.camel@cybertec.at
обсуждение исходный текст
Ответ на Locks under the hood on re-mat and dropping triggers  (Wells Oliver <wells.oliver@gmail.com>)
Ответы Re: Locks under the hood on re-mat and dropping triggers  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
On Thu, 2022-05-19 at 14:37 -0700, Wells Oliver wrote:
> Dropping triggers from some table yields a lock while a concurrent refresh of a materialized
> view in another schema entirely is running-- why is this?

That is because dropping a trigger requires a (brief) ACCESS EXCLUSIVE lock on the table,
which conflicts with all concurrent access to the table.

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



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

Предыдущее
От: Ron
Дата:
Сообщение: Re: Postgres switchover and switchback
Следующее
От: khoff
Дата:
Сообщение: Re: bash or sql script to copy foreign table to locale table