From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: VACUUM process running for a long time |
Date: | 2010-04-14 17:36:15 |
Message-ID: | 4BC5FD0F.9030809@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jan Krcmar wrote:
> hi
>
> i've got the database (about 300G) and it's still growing.
>
> i am inserting new data (about 2G/day) into the database (there is
> only one table there) and i'm also deleting about 2G/day (data older
> than month).
>
> the documentation says, one should run VACUUM if there are many
> changes in the database, but the vacuumdb never finishes sooner than
> the new data should be imported.
>
> is there any technique that can solve this problem?
>
your table is currently in a messy state, as its apparently not been
vacuumed (what version of postgres is this, anything since 8.1 should
have autovacuum running by default). in theory your table has about
60GB of data in it, the fact that its 300GB indicates there's a lot of
'dead' tuples.
You might consider partitioning this table by date, either by day or by
week, and instead of deleting old rows, drop entire old partitions
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2010-04-14 17:43:09 | Re: [SOLVED] Error in Trigger function. How to correct? |
Previous Message | Bill Moran | 2010-04-14 17:19:23 | Re: auto vacuum |