Kai Hessing <kai.hessing@xxxxxxxxxx> 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