Re: Does DROP TABLE on table A with foreign key to table B locksSELECT queries on table B?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Does DROP TABLE on table A with foreign key to table B locksSELECT queries on table B?
Дата
Msg-id 2bdf0fe5679f44ebf56890dfd5c5ead21a0c0bc3.camel@cybertec.at
обсуждение исходный текст
Ответ на Does DROP TABLE on table A with foreign key to table B locks SELECTqueries on table B?  (Tomer Praizler <tomer.praizler@gmail.com>)
Список pgsql-novice
Tomer Praizler wrote:
> I am running Postgres 10.X

Yes, dropping a table with a foreign key will take an ACCESS EXCLUSIVE lock
on the referenced table.  I believe that is because it will drop a (system)
trigger on that table.

Yours,
Laurenz Albe




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

Предыдущее
От: Tomer Praizler
Дата:
Сообщение: Does DROP TABLE on table A with foreign key to table B locks SELECTqueries on table B?
Следующее
От: "Saifi Khan"
Дата:
Сообщение: compiling PostgreSQL with --enable-llvm