]> granicus.if.org Git - postgresql/commit
Increase deadlock_timeout to 100ms in FK isolation tests
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 19 Jul 2011 17:07:16 +0000 (13:07 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 19 Jul 2011 17:07:16 +0000 (13:07 -0400)
commitd6db0e4e0e382cd5683a767424d05a0361af232a
tree7e313f80ee71e32dc8d83a5a780f45e90b61a98e
parenta0eae1a2eeb6c0e9deffeccad2f9921d8e561fb5
Increase deadlock_timeout to 100ms in FK isolation tests

The previous value of 20ms is dangerously close to the time actually
spent just waiting for the deadlock to happen, so on occasion it causes
the test to fail simply because the other session didn't get to run
early enough, not managing to cause the deadlock that needs to be
detected.  With this new value, it's expected that most machines on
normal load will be able to pass the test.

Author: Noah Misch
src/test/isolation/specs/fk-deadlock.spec
src/test/isolation/specs/fk-deadlock2.spec