Re: [GENERAL] More Deadlock Detection on Insert

2004-03-10 Thread Csaba Nagy
It is the foreign key. Checking foreign keys in postgres is implemented by locking the corresponding row in the parent table. So if you have 2 transactions inserting rows which reference the same keys in the parent table in reverse order, you get a deadlock. This lock is admittedly too strong and

Re: [GENERAL] More Deadlock Detection on Insert

2004-03-10 Thread wespvp
On 3/10/04 10:03 AM, Csaba Nagy [EMAIL PROTECTED] wrote: It is the foreign key. Checking foreign keys in postgres is implemented by locking the corresponding row in the parent table. So if you have 2 transactions inserting rows which reference the same keys in the parent table in reverse