My applications tests are pretty hard on the database. They run create, drop and alter table statements. However, I would still expect postresql to handle these even in the case of a deadlock (i.e detect the lock and trow one thread out). I am not running requests concurrently either.
However, in my case it just freezes and I have to manually kill them off manually (it works if I change the order of running slightly though, but this does not give me confidence). The locks show that a create table statement has an exclusive lock and a transaction has one too.
Has anyone experienced anything similar? Are there any server settings that can help out? Or just any advise?