fix vacuum postgres

This commit is contained in:
garnier-quentin 2020-09-21 10:05:02 +02:00
parent a11f5327ce
commit 51120e922f
1 changed files with 1 additions and 1 deletions

View File

@ -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)';
}