Re: Postgresql backend to perform vacuum automatically

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "mlw" <markw(at)mohawksoft(dot)com>, "Nicolas Bazin" <nbazin(at)ingenico(dot)com(dot)au>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Postgresql backend to perform vacuum automatically
Date: 2002-03-07 07:30:48
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA4961D66@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > I still think, that for best results the vacuums should happen continuously
> > for single pages based on a hook in wal or the buffer manager.
>
> Not possible unless you are willing to have SELECTs grab much stronger
> locks than they do now (viz, the same kind of lock that VACUUM does).

I am talking about slots, that are marked deleted before oldest tx in progress.
It should be possible to overwrite those only with the "pin" on the page.
A pageread for a select does wait (spinlock) while a new txinfo is written,
this is necessary since the txinfo is more than one byte, no ?
It should be more or less the same situation like using a slot from the
freelist, no ?
Update and delete would need to check the "old page" for %free and add it to
the freelist, like vacuum does.

This would avoid the (imho large) overhead vacuum imposes of reading static
pages that have not been modified in ages.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2002-03-07 08:22:26 Re: date formatting and tab-complete patch
Previous Message Bruce Momjian 2002-03-07 05:53:26 Re: Bad Build