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

2008-01-07 Thread Geoffrey
Joshua D. Drake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 07 Jan 2008 10:53:11 -0500 Geoffrey <[EMAIL PROTECTED]> wrote: So, I'm wondering if anyone can point me to more specific information as to when, if ever, you should 'vacuum full?' 1. If you over run your fsm pages

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

2008-01-07 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 07 Jan 2008 10:53:11 -0500 Geoffrey <[EMAIL PROTECTED]> wrote: > So, I'm wondering if anyone can point me to more specific information > as to when, if ever, you should 'vacuum full?' 1. If you over run your fsm pages * Except that vacuum f

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

2008-01-07 Thread Geoffrey
Scott Marlowe wrote: Note that routine vacuum FULL is not a good idea actually. vacuum full is something you run when things have gone wrong (i.e. not enough regular vacuuming) and it is usually best followed by reindexing all your indexes. It's far better to keep track of bloat and run vacuum

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

2008-01-05 Thread James Cloos
> "Scott" == Scott Marlowe <[EMAIL PROTECTED]> writes: Scott> Note that routine vacuum FULL is not a good idea actually. Scott> vacuum full is something you run when things have gone wrong Scott> (i.e. not enough regular vacuuming) and it is usually best Scott> followed by reindexing all your

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

2008-01-05 Thread James Cloos
> "Joshua" == Joshua D Drake <[EMAIL PROTECTED]> writes: Joshua> Autovacuum by default won't do enough work for many production Joshua> databases. You still have to configure it. OK. Thanks. Good to know. -JimC -- James Cloos <[EMAIL PROTECTED]> OpenPGP: 1024D/ED7DAEA6 --

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

2008-01-04 Thread Scott Marlowe
On Jan 4, 2008 9:35 AM, James Cloos <[EMAIL PROTECTED]> wrote: > > "Tom" == Tom Lane <[EMAIL PROTECTED]> 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

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

2008-01-04 Thread Joshua D. Drake
James Cloos wrote: "Tom" == Tom Lane <[EMAIL PROTECTED]> 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: #!/bin/bash F

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

2008-01-04 Thread James Cloos
> "Tom" == Tom Lane <[EMAIL PROTECTED]> 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: #!/bin/bash FULL='' test $(d

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

2008-01-03 Thread Tom Lane
James Cloos <[EMAIL PROTECTED]> writes: > Right after the restore the db took up less than ten percent as much > space as the backup. (For the backup I stopped pg and used rsync on > the /var/lib/postgresql/data directory.) > Why was the db using that extra five plus gigs? Smells like a hadn't-b

[ADMIN] When does VACUUM FULL not clean out all deleted data?

2008-01-03 Thread James Cloos
Today I did a backup, dump, drop, create and restore on a db which seemed to be taking up too much disk space after a vacuum full. The db was using about six gigs (as backed up) and now uses about two thirds of a gig after the restore (plus many inserts and a few deletes). Right after the restore