Skip to content

Commit c09e784

Browse files
sebastianwebberdf7cb
authored andcommitted
adjusting check_txn_idle filter by state_change column
1 parent 596c506 commit c09e784

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

check_postgres.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8019,6 +8019,7 @@ sub check_txn_idle {
80198019
$SQL3 =~ s/current_query NOT LIKE '<IDLE>%'/(state NOT LIKE 'idle%' OR state IS NULL)/; # query_time
80208020
$SQL3 =~ s/current_query/query/g;
80218021
$SQL3 =~ s/'' AS state/state AS state/;
8022+
$SQL3 =~ s/query_start/state_change/g;
80228023

80238024
my $info = run_command($SQL, { emptyok => 1 , version => [ "<8.3 $SQL2", ">9.1 $SQL3" ] } );
80248025

0 commit comments

Comments
 (0)