summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-daily
diff options
context:
space:
mode:
authorivan <ivan>2004-12-22 09:53:18 +0000
committerivan <ivan>2004-12-22 09:53:18 +0000
commit5073a0d77b624018600f7fc01c7da2fee2849c18 (patch)
tree30e1cae825848a7d76f8cc5daf60ae81df148620 /FS/bin/freeside-daily
parent722714f3fb20bc74f267d4deabeacee840ca68a1 (diff)
just "vaccum analyze" is fine
Diffstat (limited to 'FS/bin/freeside-daily')
-rwxr-xr-xFS/bin/freeside-daily6
1 files changed, 2 insertions, 4 deletions
diff --git a/FS/bin/freeside-daily b/FS/bin/freeside-daily
index d8d36252e..ae71112dd 100755
--- a/FS/bin/freeside-daily
+++ b/FS/bin/freeside-daily
@@ -57,10 +57,8 @@ foreach $cust_main ( @cust_main ) {
if ( driver_name eq 'Pg' ) {
dbh->{AutoCommit} = 1; #so we can vacuum
- foreach my $statement ( 'vacuum', 'vacuum analyze' ) {
- my $sth = dbh->prepare($statement) or die dbh->errstr;
- $sth->execute or die $sth->errstr;
- }
+ my $sth = dbh->prepare('vacuum analyze') or die dbh->errstr;
+ $sth->execute or die $sth->errstr;
}
my $conf = new FS::Conf;