Re: Real-Time Vacuum Possibility

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Real-Time Vacuum Possibility
Дата
Msg-id 39sih1F66n1imU1@individual.net
обсуждение исходный текст
Ответ на Real-Time Vacuum Possibility  (Rod Taylor <pg@rbt.ca>)
Ответы Re: Real-Time Vacuum Possibility  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-hackers
The problem that persists with this is that it throws in extra
processing at the time that the system is the _most_ busy doing
updates, thereby worsening latency at times when the system may
already be reeling at the load.

I think, as a result, that VACUUM will _have_ to be done
asynchronously.

What strikes me as being a useful approach would be to set up an
LRU-ordered (or perhaps unordered) queue of pages that have had tuples
"killed off" by DELETE or UPDATE.

Thus, a DELETE/UPDATE would add the page the tuple is on to the list.

"VACUUM RECENT CHANGES" (or something of the sort) could walk through
just those pages.  Cleaning up indexes would require some further
reads, but that's a given.

This "architecture" would be way more supportive than the present way
vacuum works for tables which are large and which have portions that
see heavy update activity.
-- 
(format nil "~S@~S" "cbbrowne" "gmail.com")
http://linuxdatabases.info/info/lisp.html
Rules of the Evil Overlord  #129. "Despite the delicious irony, I will
not force two heroes to fight each other in the arena."
<http://www.eviloverlord.com/>


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

Предыдущее
От: Kenneth Marshall
Дата:
Сообщение: Re: Changing the default wal_sync_method to open_sync for Win32?
Следующее
От: PFC
Дата:
Сообщение: Re: [PERFORM] Avoiding tuple construction/deconstruction during joining