deadlock problem - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject deadlock problem
Date
Msg-id 016c01c2f735$24850560$6500a8c0@fhp.internal
Whole thread Raw
Responses Re: deadlock problem
Re: deadlock problem
Re: deadlock problem
List pgsql-hackers
I'm always getting deadlocks like this:

[30-Mar-2003 19:19:51] PHP Fatal error:  postgres7 error: [0: ERROR:
deadlock detected
] in EXECUTE("INSERT INTO users_foods (user_id, date, meal_id, quantity,
eaten, food_id) VALUES ('55283', '2003-04-07', '1', '1.00', 'f', '779')")in
/usr/local/www/generic/lib/adodb/adodb-errorhandler.inc.phpon line 71
 


Why would an INSERT cause a deadlock problem?  Is this due to the FOR UPDATE
problem with foreign keys?

Chris



pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: Detecting corrupted pages earlier
Next
From: Hannu Krosing
Date:
Subject: Re: updateable cursors & visibility