deadlock problem

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: deadlock problem
Date: 2003-03-31 03:25:13
Message-ID: 016c01c2f735$24850560$6500a8c0@fhp.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.php on line 71

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

Chris

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Brown 2003-03-31 04:24:56 Re: Detecting corrupted pages earlier
Previous Message Christopher Kings-Lynne 2003-03-31 03:21:53 A few questions: