Re: disk space usage enlarging despite vacuuming - Mailing list pgsql-general

From Tom Lane
Subject Re: disk space usage enlarging despite vacuuming
Date
Msg-id 13585.1053187984@sss.pgh.pa.us
Whole thread Raw
In response to disk space usage enlarging despite vacuuming  (Tzvetan Tzankov <ceco@noxis.net>)
Responses Re: disk space usage enlarging despite vacuuming  (Tzvetan Tzankov <ceco@noxis.net>)
List pgsql-general
Tzvetan Tzankov <ceco@noxis.net> writes:
> I use debian package postgresql 7.3.2r1-2, it is set to vacuum every 5
> hours and once weekly (sunday) vacuum -f, aditionally there are some
> session tables which vacuum at 5 minutes, dispite this the disk usage
> enlarges with 300-400MB for about 2 days and in sundey with the full vacuum
> very few MB-s are recovered.

There isn't enough info here to really tell what's going on; you need to
look at the individual tables and indexes of the problem databases to
see where the space is going.  (pg_class's relpages column will give
you the right data, if you vacuum first.)

A first guess is that the problem is index bloat, but that's really
theorizing in advance of the data...

            regards, tom lane

pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: Relation "pg_relcheck" does not exist
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: - what protocol for an Internet postgres