From: | "Hitoshi Harada" <hitoshi_harada(at)forcia(dot)com> |
---|---|
To: | "'Glen Parker'" <glenebob(at)nwlink(dot)com>, "'Postgres General'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: AutoVacuum on demand? |
Date: | 2006-11-10 05:21:57 |
Message-ID: | 200611100521.kAA5Lm8l042387@mbox30.po.2iij.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Since our nightly window of relative inactivity continues to shrink, I'd
> like to vacuum/analyze only the tables that autovacuum thinks need it,
> all at once, and only when I tell it to (via cron).
I thought as you did and posted a thread, where I proposed a C function
smartvacuum() which you can call to vacuum with the same criteria as
autovacuum on demand.
http://archives.postgresql.org/pgsql-patches/2006-10/msg00131.php
But that was hardly accepted
http://archives.postgresql.org/pgsql-hackers/2006-10/msg01190.php
and the discussion are gone over there:
http://archives.postgresql.org/pgsql-hackers/2006-10/msg01225.php
There're some cases where the whole database is not needed to be vacuumed,
right?
Anyway, though smartvacuum() was not implemented as I could find another
way, you maight be able to implement it by yourself.
Or, any way to catch row level statistic from SQL or pgsql function should
be prepared on future version??
Regards,
Hitoshi Harada
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Glen Parker
> Sent: Friday, November 10, 2006 11:05 AM
> To: Postgres General
> Subject: Re: [GENERAL] AutoVacuum on demand?
>
> Richard Broersma Jr wrote:
> >> Cron yes, vacuumdb no. I would like to AUTO vacuum periodically.
> >
> > Just curious, what is auto_vacuum going to give that vacuumdb wont?
>
>
>
> Hmm, I thought this would be obvious. Vacuumdb just issues "VACUUM"
> commands.
>
> I would like the get the functionality if autovacuum so that I don't
> waste cycles on tables that don't really need vacuuming. However, we've
> had bad luck letting autovacuum run on its own terms, so we've reverted
> to the old nightly vacuums.
>
> Since our nightly window of relative inactivity continues to shrink, I'd
> like to vacuum/analyze only the tables that autovacuum thinks need it,
> all at once, and only when I tell it to (via cron).
>
> Make more sense?
>
> -Glen
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
From | Date | Subject | |
---|---|---|---|
Next Message | novnov | 2006-11-10 05:51:20 | Multiple currencies in a application |
Previous Message | Ed L. | 2006-11-10 05:12:30 | Re: 8.1.2 locking issues |