Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal
Дата
в 18:31:12
Msg-id
7776.1179351051@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
[doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Guillaume Cottenceau <gc@mnc.ch>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Michael Stone <mstone+postgres@mathom.us>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Guillaume Cottenceau <gc@mnc.ch>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal "Jim C. Nasby" <decibel@decibel.org>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Guillaume Cottenceau <gc@mnc.ch>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Alvaro Herrera <alvherre@commandprompt.com>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal "Jim C. Nasby" <decibel@decibel.org>
Re: [doc patch] a slight VACUUM / VACUUM FULL doc improvement proposal Michael Stone <mstone+postgres@mathom.us>
Michael Stone  writes:
> On Wed, May 16, 2007 at 03:34:42PM -0400, Chris Browne wrote:
>> If CLUSTER is faster than VACUUM FULL (and if it isn't, in all cases,
>> it *frequently* is, and probably will be, nearly always, soon), then
>> it's a faster workaround.

> Cluster reorders the table. If a table doesn't have any dead rows and 
> you tell someone to run cluster or vacuum full, the vaccuum basically 
> won't do anything and the cluster will reorder the whole table. Cluster 
> is great for certain access patterns, but I've been noticing this odd 
> tendency lately to treat it like a silver bullet.

Sure, but VACUUM FULL looks even less like a silver bullet.

There's been talk of providing an operation that uses the same
infrastructure as CLUSTER, but doesn't make any attempt to re-order the
table: just seqscan the old heap, transfer still-live tuples into a new
heap, then rebuild indexes from scratch.  This is clearly going to be a
lot faster than a VACUUM FULL under conditions in which the latter would
have to move most of the tuples.  Heikki just fixed one of the major
objections to it (ie, CLUSTER not being MVCC-safe).  The other objection
is that peak transient disk space usage could be much higher than VACUUM
FULL's, but still for a lot of scenarios this'd be better.

			regards, tom lane
В списке pgsql-performance по дате отправления
От: Alvaro Herrera
Дата:
От: Mark Kirkwood
Дата:
FAQ