Kai Hessing <kai(dot)hessing(at)hobsons(dot)de> writes:
> No one any idea? *sigh*
What makes you think it's a deadlock and not a very slow query? I'd be
checking if the tables were all ANALYZEd and comparing EXPLAIN output
to the old database ...
regards, tom lane