pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedVacuum strategies
2+ messages / 2 participants
[nested] [flat]
* Vacuum strategies
@ 2003-05-29 10:21 Michael Mattox <michael.mattox@verideon.com>
2003-05-29 11:27 ` Re: Vacuum strategies Bruno Wolff III <bruno@wolff.to>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Mattox @ 2003-05-29 10:21 UTC (permalink / raw)
To: pgsql-admin
When I run vacuum (I usually do "vacuum full verbose analyze"), I get a
message saying vacuum should only be performed when no one is using the
database. My database is used for a website which is active 24 hours a day,
so I'm curious what kind of vacuum strategy I should use? Should I shut
down the website to vacuum or should I just schedule the vacuum to run in
the middle of the night? So far I've been doing it while the website is
running without any problems.
Thanks,
Michael Mattox
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Vacuum strategies
2003-05-29 10:21 Vacuum strategies Michael Mattox <michael.mattox@verideon.com>
@ 2003-05-29 11:27 ` Bruno Wolff III <bruno@wolff.to>
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Wolff III @ 2003-05-29 11:27 UTC (permalink / raw)
To: Michael Mattox <michael.mattox@verideon.com>; +Cc: pgsql-admin
On Thu, May 29, 2003 at 12:21:44 +0200,
Michael Mattox <michael.mattox@verideon.com> wrote:
> When I run vacuum (I usually do "vacuum full verbose analyze"), I get a
> message saying vacuum should only be performed when no one is using the
> database. My database is used for a website which is active 24 hours a day,
> so I'm curious what kind of vacuum strategy I should use? Should I shut
> down the website to vacuum or should I just schedule the vacuum to run in
> the middle of the night? So far I've been doing it while the website is
> running without any problems.
Vacuum full exclusively locks tables and can hurt performance if
tables are big. If you are running 7.3, you normally won't need to
run vacuum full. Vacuum should be run when a significant fraction of
rows in a table have been deleted or updated or at least every
10^9 transactions. Analyse needs to be run after inserts, updates
or deletes have significantly impacted the statistics for a table.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-29 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-29 10:21 Vacuum strategies Michael Mattox <michael.mattox@verideon.com>
2003-05-29 11:27 ` Bruno Wolff III <bruno@wolff.to>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox