I'm occasionally but quite often getting an unhandled exception in cursor.execute (django1.1/db/models/sql/query.py line 2369), using psycopg2 with postgresql.
Looks like the database drops connection in some way, so Django crashes. For unhandled exception there is a ticket in Django's bugtrack (#11015), but I'm rather interested in reasons why db drops connection, not why Django doesn't catches it.
Using django's dev. server this error never happens (it runs db requests in order, concurrency never happens), so it's like it has something to do with db requests concurrency or what.
I have no access to postgresql config. or logs.
Any suggestions welcomed, maybe some postgresql tweaking, or some thoughts on how to debug this issue.
upd: looks like this question - http://stackoverflow.com/questions/393637 - addresses the same problem, but no solution provided :-(