(plugin) database::postgres - mode backends fix --noidle option (#3982)
This commit is contained in:
parent
8078e69cb4
commit
7ba30060b5
|
@ -61,7 +61,7 @@ sub run {
|
|||
|
||||
my $noidle = '';
|
||||
if (defined($self->{option_results}->{noidle})) {
|
||||
if ($self->{sql}->is_version_minimum(version => '9.2')) {
|
||||
if ($options{sql}->is_version_minimum(version => '9.2')) {
|
||||
$noidle = " AND state <> 'idle'";
|
||||
} else {
|
||||
$noidle = " AND current_query <> '<IDLE>'";
|
||||
|
|
Loading…
Reference in New Issue