Skip to content

Commit fd9702c

Browse files
author
David Christensen
committed
Fix issue with checking wrong order of queries for check_txn_idle
This should fix GH Issue #139
1 parent 364f6d6 commit fd9702c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8375,7 +8375,7 @@ sub check_txn_idle {
83758375
## For Pg 10 and above, consider only client backends
83768376
($SQL4 = $SQL3) =~ s/ WHERE / WHERE backend_type = 'client backend' AND /;
83778377

8378-
my $info = run_command($SQL, { emptyok => 1 , version => [ "<8.3 $SQL2", ">9.1 $SQL3", ">9.6 $SQL4" ] } );
8378+
my $info = run_command($SQL, { emptyok => 1 , version => [ "<8.3 $SQL2", ">9.6 $SQL4", ">9.1 $SQL3" ] } );
83798379

83808380
## Extract the first entry
83818381
$db = $info->{db}[0];

0 commit comments

Comments
 (0)