Re: Indexes and Tables: Growth and Treatment (Modified by Thomas F. O'Connell) - Mailing list pgsql-general

From Tom Lane
Subject Re: Indexes and Tables: Growth and Treatment (Modified by Thomas F. O'Connell)
Date
Msg-id 20494.1089763104@sss.pgh.pa.us
Whole thread Raw
In response to Indexes and Tables: Growth and Treatment (Modified by Thomas F. O'Connell)  (Thomas F.O'Connell <tfo@sitening.com>)
Responses Re: Indexes and Tables: Growth and Treatment  (Thomas F.O'Connell <tfo@sitening.com>)
Re: Indexes and Tables: Growth and Treatment  (Thomas F.O'Connell <tfo@sitening.com>)
List pgsql-general
"Thomas F.O'Connell" <tfo@sitening.com> writes:
> It's a high turnover database, in that the applications that use it
> perform thousands of inserts, updates, and deletes on a daily basis.

> We're seeing about 5-10 GB of increased disk space used on a daily
> basis if a vacuum (full) or reindexdb is not performed. We were doing
> one vacuum analyze full a week with nightly vacuum analyzes.

Try hourly vacuums.  If that doesn't stem the tide, make it more often
(or try autovacuum).  Also make sure that your FSM settings are large
enough; if they're not then no amount of plain vacuuming will keep you
out of trouble.

With sufficiently frequent plain vacuums you really shouldn't need
vacuum full at all.

I can't recommend an analyze frequency on what you've told us.

            regards, tom lane

pgsql-general by date:

Previous
From: Carlos Roberto Chamorro Mostacilla
Date:
Subject: Function and RowType
Next
From: Thomas F.O'Connell
Date:
Subject: Re: Indexes and Tables: Growth and Treatment