Fix userclause handling in check_txn_idle
authorMichael van Bracht <mvb@solute.de>
Mon, 11 Feb 2013 10:38:32 +0000 (11:38 +0100)
committerMichael van Bracht <mvb@solute.de>
Mon, 11 Feb 2013 10:38:32 +0000 (11:38 +0100)
commite9fcc600cd871e31f535f2699706e534c22a3f6b
treeb5548fc45f7d5aeb1f0562557a3ad28645e1e7f8
parent4261802d4b29468de01ba0bfb4ae78ef35c3c457
Fix userclause handling in check_txn_idle

For databases > Postgrs 9.1, irrelevant records are discarded
with two ORed conditions. This makes the optional userclause
associate with the right hand side of the condition. The expression
needs to be grouped to get the desired effect regardless of the
evaluation of the previous condition.
check_postgres.pl