Hello, For 2-3 days my application throws randomly (not always) such exception:
Traceback (most recent call last): File "/usr/lib64/python2.5/site-packages/django/core/handlers/ base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/www/django/czat/ajax.py", line 60, in xml d.delete() File "/usr/lib64/python2.5/site-packages/django/db/models/query.py", line 433, in delete delete_objects(seen_objs) File "/usr/lib64/python2.5/site-packages/django/db/models/query.py", line 982, in delete_objects del_query.delete_batch(pk_list) File "/usr/lib64/python2.5/site-packages/django/db/models/sql/ subqueries.py", line 88, in delete_batch self.do_query(self.model._meta.db_table, where) File "/usr/lib64/python2.5/site-packages/django/db/models/sql/ subqueries.py", line 35, in do_query self.execute_sql(None) File "/usr/lib64/python2.5/site-packages/django/db/models/sql/ query.py", line 1974, in execute_sql cursor.execute(sql, params) TransactionRollbackError: deadlock detected DETAIL: Process 30291 waits for ExclusiveLock on tuple (0,96) of relation 148468 of database 98304; blocked by process 30301. Process 30301 waits for ShareLock on transaction 69891936; blocked by process 30296. Process 30296 waits for ExclusiveLock on tuple (0,105) of relation 148468 of database 98304; blocked by process 30332. Process 30332 waits for ShareLock on transaction 69891934; blocked by process 30291. And it is always raised in the same place (d.delete()). What can cause that problem? DB is Postgres. Best regards, Szymon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

