my $connect = "DBI:Pg:dbname=backuppc";
my $commit_every = 100;
+my $limit = 0; # no limit
+#$limit = 1000;
my $bar = Term::ProgressBar->new({
- count => 100,
+ count => 1000,
# fh => \*STDOUT,
# name => 'thingy',
ETA => 'linear',
and files.backupnum = backups.num
and shares.id = backups.shareid
order by backups.date
-limit 1000
};
+$sql .= qq{ limit $limit } if ($limit);
+
_debug("prepare");
my $sth = $dbh->prepare($sql) || die $dbh->errstr();
_debug("execute");