From: | Pascal Heraud <heraud(at)tatm(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Vacuum taking an age |
Date: | 2008-01-03 13:37:20 |
Message-ID: | 477CE510.8050008@tatm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
If you're using the version 8.1 and after, you should consider using the
auto-vacuum daemon that is the best way to do it:
http://www.postgresql.org/docs/8.1/static/maintenance.html
Pascal;
Brian Modra a écrit :
> Hi,
>
>
> I have a pretty "live" table: rows being inserted and updated more
> than once 1 per second, though far, far more inserts than updates.
>
> There are currently over 3 million rows.
>
> It has not been vacuumed for months.
>
> Now a vacuum on that table takes hours, and I have not let it complete
> because it stays running into our daily busy time... but I've been
> told its necessary because the table is slowing down.
>
> I have begun a cron job which will do a daily analyze, and am thinking
> of a weekly vacuum...
> Please advise on the best way to keep this table maintained, even if
> it means regularly taking the service offline early on Sunday
> morning...
>
> thanks in advance
> Brian
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Ruprecht | 2008-01-03 16:52:42 | Re: MacOS X 10.5.1 and compiling for multiple Architectures |
Previous Message | Peter Eisentraut | 2008-01-03 12:56:32 | Re: get PGDATA as non-postgres user |