From: | Gaetano Mendola <gmendola(at)mbigroup(dot)it> |
---|---|
To: | "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net> |
Cc: | Gaetano Mendola <mendola(at)bigfoot(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: VACUUM FULL on 24/7 server |
Date: | 2004-10-04 17:29:58 |
Message-ID: | 41618896.4010404@mbigroup.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthew T. O'Connor wrote:
| Gaetano Mendola wrote:
|
|> Matthew T. O'Connor wrote:
|>
|>> Since you are running autovacuum I doubt the doing vacuumdb -a -z is 3
|>> times a day buying you much. It's not a bad idea to do once in a while.
|>
|>
|>
|> The reason is that I have few tables of about 5 milion with ~ 10000
|> insert per
|> day. Even with setting -v 300 -V 0.1 this means these tables will be
|> analyzed
|> each 50 days. So I have to force it.
|
|
| I understand, but 10,000 new rows increate your table size only 0.2%, so
| it won't significantly effect anything. Also, if they really are just
| inserts then vacuum is totally unnecessary. I agree that for these
| situations pg_autovacuum should be supplemented by vacuumdb -a -z every
| once in a while, all I was pointing out was that 3 times a day is
| probably excessive.
Right, but the table collect logs, so is mandatory have the statistics up-to-date
in order to obtain index scan for queries that are involving the last 24 hours.
For the vacuum vs the analyze I do vacuum because other tables are not in this
category of "only update" so instead of write tons of line in my crontab I prefer
only one line.
Regards
Gaetano Mendola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBYYiV7UpzwH2SGd4RAiglAKDpPvuhEZSabwXVBJzcCezH8fYIJQCfW9UY
CUkHUisIuJsbJHU5W0g0FhI=
=u6Xz
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Gaetano Mendola | 2004-10-04 17:34:52 | Re: VACUUM FULL on 24/7 server |
Previous Message | Bruno Wolff III | 2004-10-04 17:25:21 | Re: Random not so random |