Re: Re: [GENERAL] Vacuum and Transactions

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [GENERAL] Vacuum and Transactions
Date: 2001-07-12 19:53:55
Message-ID: 200107121953.f6CJrti27008@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> > That might happen eventually, but I'm not all that eager to convert
> > the postmaster into a (half-baked) substitute for cron. My experience
> > as a dbadmin is that you need various sorts of routinely-run maintenance
> > tasks anyway; VACUUM is only one of them. So you're gonna need some
> > cron tasks no matter what. If we try to make the postmaster responsible
> > for this sort of thing, we're going to end up reimplementing cron.
> > I think that's a waste of effort.
>
> Except that you can only set cron jobs to run every hour, etc. The DBA
> might want to set it to run after say 5% of the rows in a table are
> updated/deleted, etc. It is an esoteric feature, I know, but it'd be cool.

I don't think it is esoteric. If I UPDATE all the rows in a table,
COMMIT, and all transactions viewing old versions of my table are gone,
it would be nice for VACUUM-light to come alone and gather up my free
tuple space for later use.

Only the database knows when this has happened, not cron.

I also think we have to leave VACUUM alone and come up with a new name
for our light VACUUM. That way, people who do VACUUM at night when no
one is on the system can keep doing that, and just add something to run
light vacuum periodically during the day. I also believe eventually we
will remove VACUUM-light and come up with some automatic solution.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-07-12 20:06:03 Re: Postgresql revisited. Some questions about the product
Previous Message Guy Fraser 2001-07-12 19:44:35 Re: Bad news for Open Source databases, acording to survey

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex Pilosov 2001-07-12 20:05:05 Re: Rule recompilation
Previous Message Peter Eisentraut 2001-07-12 19:51:01 Re: Rule recompilation