Re: Does DROP TABLE on table A with foreign key to table B locks SELECT queries on table B?
Laurenz Albe <[email protected]> Tue, 07 May 2019 18:57:44 +0200
| Newsgroups | gmane.comp.db.postgresql.novice |
|---|---|
| Organization | Cybertec |
| Message-ID | <[email protected]> |
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