Make DROP INDEX lock the parent table before locking the index. This behavior
commit291452a269831c55f84b34c21770fe58f380d282
authortgl <tgl>
Sun, 15 Jun 2008 16:29:05 +0000 (15 16:29 +0000)
committertgl <tgl>
Sun, 15 Jun 2008 16:29:05 +0000 (15 16:29 +0000)
treebf8a1d653fe6c141f7c3d40f29a888ee362434ff
parent50e8b0b088a465d082b0f3e40c4463c4ff5f2783
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