My application tests are pretty complicated in the database. They run the create, drop, and alter table statements. However, I would still expect postresql to handle them even in the event of a deadlock (for example, it will detect a lock and pull out one thread). I also do not execute requests at the same time.
However, in my case, it just hangs, and I have to manually kill them manually (this works if I change the startup order a little, but it does not give me confidence). Locks indicate that the create table statement has an exclusive lock, and the transaction also has one.
Has anyone experienced something like this? Are there any server settings that might help? Or just advise?
source
share