[elephant-devel] Re: Postmodern regression

Alex Mizrahi killerstorm at newmail.ru
Fri Apr 25 16:04:02 UTC 2008


 LPP> What can I do about it with the new Postmodern code?

hmm, iirc this error was addressed in executor-exec-prepared in pm-sql.lisp,
but you moved it into pm-transaction.lisp to restart txn in case of this 
error, right?

and then i've removed it when merging, sorry..

if so, add it into into pm-transaction.lisp:

(defmacro with-concurrency-errors-handler
...
   (when (or (string= err-code "40001") ; SERIALIZATION FAILURE
      (string= err-code "40P01")); DEADLOCK DETECTED

and add "42P05" there.

but are you sure that restarting txn in this case is right, and when such 
stuff happens at all?
because it didn't happen frequently for me, and i don't have good 
understanding what's happening with these prepareds, honestly.
so if you have a model about what is going on, please describe it 






More information about the elephant-devel mailing list