Обсуждение: AW: Re: [GENERAL] Vacuum and Transactions

Поиск
Список
Период
Сортировка

AW: Re: [GENERAL] Vacuum and Transactions

От
Zeugswetter Andreas SB
Дата:
> 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.

If I understood what VACUUM light does, I do not think that people
will need to actually do the conventional VACUUM as often anymore.
I understood, that VACUUM light makes outdated tuple heap space available
for reuse, and removes the corresponding index entries.
It does not make space available to other tables or the OS,
but most other DB's do not do that eighter.
The conventional VACUUM would then be something you do as part of a DB 
reorganization (maybe once every month or so).

Andreas


Re: AW: Re: [GENERAL] Vacuum and Transactions

От
Bruce Momjian
Дата:
> 
> > 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.
> 
> If I understood what VACUUM light does, I do not think that people
> will need to actually do the conventional VACUUM as often anymore.
> I understood, that VACUUM light makes outdated tuple heap space available
> for reuse, and removes the corresponding index entries.
> It does not make space available to other tables or the OS,
> but most other DB's do not do that eighter.
> The conventional VACUUM would then be something you do as part of a DB 
> reorganization (maybe once every month or so).

Yes, but in other DB's if you UPDATE all rows in the table, you don't
double the disk space.  They also reuse DELETEd space automatically.

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