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

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

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

От
Bruce Momjian
Дата:
> > > 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.
> 
> Sure, but what is wrong with keeping the space allocated for
> the next "UPDATE all rows", if that is something the application
> needs to do frequently ?  PostgreSQL needs more space on disc,
> but we knew that already :-)

In many cases, a VACUUM will not have been run before more space is
needed in the table so you will get ever-increasing sizes until a full
VACUUM.  Only in an optimial light VACUUM state would a table that gets
continually updated _not_ continue to grow.

-- 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