]> git.decadent.org.uk Git - dak.git/commitdiff
Disable unneeded vacuum runs
authorJoerg Jaspert <joerg@debian.org>
Sun, 20 Apr 2008 20:56:09 +0000 (20:56 +0000)
committerJoerg Jaspert <joerg@debian.org>
Sun, 20 Apr 2008 20:56:09 +0000 (20:56 +0000)
config/debian/cron.daily

index ea84417d57604945c7d6619b60d5958128a4c544..215bdb590542b5295413b9b7b2d3330d84a3eb00 100755 (executable)
@@ -154,10 +154,14 @@ pg_dump projectb > $POSTDUMP
 
 ################################################################################
 
-TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+#TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
 
 # Vacuum the database
-echo "VACUUM; VACUUM ANALYZE;" | psql projectb 2>&1 | grep -v "^NOTICE:  Skipping.*only table owner can VACUUM it$"
+# (JJ, 20-04-2008) disabled, as we have autovacuum set to on in postgres.
+# refer to http://www.postgresql.org/docs/current/static/routine-vacuuming.html#AUTOVACUUM
+# which says "Beginning in PostgreSQL 8.1, there is an optional feature called autovacuum,
+# whose purpose is to automate the execution of VACUUM and ANALYZE  commands."
+# echo "VACUUM; VACUUM ANALYZE;" | psql projectb 2>&1 | grep -v "^NOTICE:  Skipping.*only table owner can VACUUM it$"
 
 ################################################################################