Re: Growing Database Size - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Growing Database Size
Date
Msg-id 20030614134533.GE27374@wolff.to
Whole thread Raw
In response to Growing Database Size  (Jason Godden <jasongodden@optushome.com.au>)
Responses Re: Growing Database Size  (Kenneth Godee <Ken@perfect-image.com>)
List pgsql-general
On Sat, Jun 14, 2003 at 16:35:16 +1000,
  Jason Godden <jasongodden@optushome.com.au> wrote:
> Hi All,
>
> I've got a bit of a dilemma with growing database sizes.  Before upgrading to
> 7.3.2 my 7.3.0 database had an average size of 1.4-2.0gb.  I have a large
> number of LO records in my db and presumed the size growth was because of
> them.  However I do have the appropriate trigger functions on my LO records
> to ensure that lo_manage runs to unlink the old reference etc.
>
> Since moving to 7.3.2, even though I VACUUM regularly, my DB size has
> increased to 3.2GB on disk!!  The raw data only consumes about 700-900mb so I
> feel that an additional 2.2gb for index and statistics info is a bit much!
> Any clues from the experienced among the group?
>
> PS - strange thing is that even with that huge change on disk PG's performance

You probably want to use a reindex. If you have an index on a column
that only increases or decreases over time, the index won't be able
to use reuse pages that are no longer in use. This is fixed in 7.4.

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: return records in DB load order??
Next
From: Bruno Wolff III
Date:
Subject: Re: Growing Database Size Solved