From 51120e922f9a30f98043d524eae5ff42f332e25b Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 21 Sep 2020 10:05:02 +0200 Subject: [PATCH] fix vacuum postgres --- database/postgres/mode/vacuum.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/postgres/mode/vacuum.pm b/database/postgres/mode/vacuum.pm index f83176ac9..7f3ef86ad 100644 --- a/database/postgres/mode/vacuum.pm +++ b/database/postgres/mode/vacuum.pm @@ -60,7 +60,7 @@ sub run { my $target_fields = 'last_vacuum'; # Autovacuum feature has only been impleted starting PG 8.2 # (options needed http://www.postgresql.org/docs/8.2/static/runtime-config-autovacuum.html, no need starting 8.3) - if ($self->{sql}->is_version_minimum(version => '8.2.0')) { + if ($options{sql}->is_version_minimum(version => '8.2.0')) { $target_fields = 'greatest(last_autovacuum,last_vacuum)'; }