Re: InternalError -- django specific state?

2009-12-18 Thread shaunc
In fact, my code had a bug in it -- I was both rolling back and releasing the savepoint (via a finally). Sorry about that. For the record this *does* work: you can use savepoints and row-level locking for synchronization between different processes, as you would hope Thanks. On Dec 18, 2:03 

InternalError -- django specific state?

2009-12-17 Thread shaunc
Can anyone help me with the following point? Does django keep internal state when psycopg throws a OperationalError, and how do I clear it? The situation is this: I have external processes writing into a django/ postgres database. To avoid using semaphors, etc, I'm trying to use a row level lock