]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/Backup.pm
move postgres_admin_command into PMG::Utils
[pmg-api.git] / src / PMG / Backup.pm
index 9114d2bcacce07ccf574c8f8511af9f098f04362..11eff5f79e5e42178508b2a8794e3b721b028798 100644 (file)
@@ -10,6 +10,7 @@ use PVE::Tools;
 
 use PMG::pmgcfg;
 use PMG::AtomicFile;
+use PMG::Utils qw(postgres_admin_cmd);
 
 my $sa_custom_config_fn = "/etc/mail/spamassassin/custom.cf";
 
@@ -286,7 +287,7 @@ sub pmg_restore {
            }
 
            print STDERR "run analyze to speed up database queries\n";
-           PMG::DBTools::postgres_admin_cmd('psql', { input => 'analyze;' }, $dbname);
+           postgres_admin_cmd('psql', { input => 'analyze;' }, $dbname);
 
            print "Analyzing/Upgrading existing Databases...";
            my $ruledb = PMG::RuleDB->new($dbh);