Re: Vacuum thoughts

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Vacuum thoughts
Дата
Msg-id m3vfqj1y8m.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Ответ на Vacuum thoughts  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Vacuum thoughts  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
The world rejoiced as tgl@sss.pgh.pa.us (Tom Lane) wrote:
> The latter point is really the crux of the problem.  The point of having
> the VACUUM process is to keep maintenance work out of the critical path
> of foreground queries.  Anything that moves even part of that
> maintenance work into the critical path is going to be a net loss.

How about a "flip side" for this...

VACUUM CACHE;

This new operation vacuums only those pages of relations that are in
cache.  Tuples that have recently been trashed are quite likely to be
in cache because they had to be drawn in in order to mark them as
obsolete.  So if there is (say) a "balance table" where entries get
updated regularly, the dead tuples should be sitting in cache.

This should go "blip - walk through 10K pages of cache in memory" and
be done.  (Modulo a need to pull in some index pages to mark index
entries as dead...)
-- 
output = reverse("gro.mca" "@" "enworbbc")
http://www.ntlug.org/~cbbrowne/linux.html
Build a man a fire and he will be warm for a day.
Set a man on fire and he will be warm for the rest of his life.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: In-doubt window
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Unicode upper() bug still present