Skip site navigation (1) Skip section navigation (2)

Re: When will my database crash?

From: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
To: "S(dot) C(dot)" <sc(at)eg-1(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: When will my database crash?
Date: 2004-09-08 23:57:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
> S. C.
> We have a postgres 7.4 database which never vacuum for 4 months. I try to
> vacuum one time. But my manager can't bear the low performance of
> website. So
> I had to kill the vacuum before it finished.  Is it ok for a postgres 7.4
> database never do vacuuming?
> We have 10,000 trans every day. That would be 10,000 inserts and 10,000
> updates each day.

Well, at 10,000 trans per day, you have many years yet before fatal problems
occur, but thats not OK.

It is possible to run for a long time without vacuuming, if your application
performance does not degrade significantly as a result - but that is very
dependant upon the exact application/database design. Unfortunately, most
designs will degrade. The danger is that your performance grows slightly
worse every second, with the risk that some query plans may eventually
switch to a different execution path and the viability of your website might
come to a sudden halt.

Proactive, planned maintenance is more manageable than sudden, grinding
failure when you're at home in bed. Make sure your manager is part of the
call-out plan, thats usually a good way to make them care about maintenance.

For most applications, you should be running VACUUM FULL at least monthly,
since any more than that is effectively the same thing as "never", as your
case shows.

Best Regards, Simon Riggs

In response to


pgsql-admin by date

Next:From: Christopher BrowneDate: 2004-09-09 02:55:54
Subject: Re: When will my database crash?
Previous:From: Tsirkin EvgenyDate: 2004-09-08 21:34:52
Subject: Re: changing the size of a varchar column

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group