Deadlock Retry plugin for Rails and Postgres
Ruby
Pull request Compare This branch is 3 commits ahead of rails:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
init.rb

README

Postgres Deadlock Retry
==============

Based on the original "Deadlock Retry" plugin
I aim to make this work in Postgres too.

But here is the original README below.

Deadlock Retry
==============

Deadlock retry allows the database adapter (currently only tested with the
MySQLAdapter) to retry transactions that fall into deadlock. It will retry
such transactions three times before finally failing.

This capability is automatically added to ActiveRecord. No code changes or otherwise are required.

Copyright (c) 2005 Jamis Buck, modified for Postgres 2010 Matthew Rudy Jacobs, released under the MIT license