]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make DROP INDEX lock the parent table before locking the index. This behavior
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2008 16:29:05 +0000 (16:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jun 2008 16:29:05 +0000 (16:29 +0000)
commit906f27dd73124b7ab91ac2335bf42a95c51b9d7b
tree07acaca6bc737ccd79874a08508cbb2cbf8defc2
parent71ff461a1832df80d55f02dd8a254c2083a1f479
Make DROP INDEX lock the parent table before locking the index.  This behavior
is necessary to avoid deadlock against ordinary queries, but we'd broken it
with recent changes that made the DROP machinery lock the index before
arriving at index_drop.  Per intermittent buildfarm failures.
src/backend/commands/tablecmds.c