turn on AutoCommit when vacuuming
authorivan <ivan>
Fri, 4 Oct 2002 12:39:29 +0000 (12:39 +0000)
committerivan <ivan>
Fri, 4 Oct 2002 12:39:29 +0000 (12:39 +0000)
FS/bin/freeside-daily

index 22bf2c9..52028b7 100755 (executable)
@@ -50,6 +50,7 @@ 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;