Re: [PATCHES] smartvacuum() instead of autovacuum

From: "Hitoshi Harada" <hitoshi_harada(at)forcia(dot)com>
To: "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] smartvacuum() instead of autovacuum
Date: 2006-10-23 01:02:49
Message-ID: 200610230104.k9N14dPM054839@mbox31.po.2iij.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Hi, Peter,

> How is this different from what autovacuum does?

My application needs to do vacuum by itself, while
autovacuum does it as daemon.
The database is updated so frequently that
normal vacuum costs too much and tables to be updated are
not so many as the whole database is vacuumed.
I want to use autovacuum except the feature of daemon,
but want to control when to vacuum and which table to vacuum.
So, nothing is different between autovacuum and smartvacuum(),
but former is daemon and later is user function.

c.f. I ran autovacuum before, and my batch script did vacuum while
autovacuum did one as well on the other session at the same time.
I found the vacuum analyze conflicts each other sometime...
so I want to control vacuum my self.
http://archives.postgresql.org/pgsql-bugs/2002-12/msg00198.php
http://archives.postgresql.org/pgsql-general/2004-05/msg00015.php

Regards,

Hitoshi Harada

> -----Original Message-----
> From: Peter Eisentraut [mailto:peter_e(at)gmx(dot)net]
> Sent: Sunday, October 22, 2006 10:08 PM
> To: Hitoshi Harada
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [PATCHES] smartvacuum() instead of autovacuum
>
> Hitoshi Harada wrote:
> > I am trying to implement smartvacuum(), which do vacuum only tables
> > having many dead rows, instead of autovacuum.
>
> How is this different from what autovacuum does?
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-10-23 01:25:10 Re: New CRC algorithm: Slicing by 8
Previous Message Tom Lane 2006-10-22 22:06:13 Re: New CRC algorithm: Slicing by 8

Browse pgsql-patches by date

  From Date Subject
Next Message Thomas H. 2006-10-23 01:31:50 Re: BUG #2712: could not fsync segment: Permission denied
Previous Message Thomas H 2006-10-22 23:28:32 BUG #2712: could not fsync segment: Permission denied