[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When does VACUUM FULL not clean out all deleted data?

James Cloos wrote:
"Tom" == Tom Lane <tgl@xxxxxxxxxxxxx> writes:

Why was the db using that extra five plus gigs?

Tom> Smells like a hadn't-been-vacuuming-often-enough problem.

Sorry, I forgot to mention:  autovacuum was enabled and I also ran
this script every night via cron:

test $(date +%w) -eq 0 && FULL='FULL'
exec psql -U dbm -c "VACUUM ${FULL} VERBOSE ANALYZE" dbm

The app at least felt faster with the daily vacuum, even though
autovacuum was running.  I don't have a good explanation for that,

Autovacuum by default won't do enough work for many production databases. You still have to configure it.

Joshua D. Drake

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not

[Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

Powered by Linux