Re: Vacuum full crash

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuum full crash
Дата
Msg-id 27266.1206905305@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Vacuum full crash  ("Mikko Partio" <mpartio@gmail.com>)
Список pgsql-admin
"Mikko Partio" <mpartio@gmail.com> writes:
> Interesting. What is planned substitute for VACUUM FULL? CLUSTER?

What's been discussed is something that works roughly like CLUSTER
but doesn't bother to sort the data any particular way (ie, just do
a seqscan not an indexscan in the data-copying phase).  This would
certainly dominate VACUUM FULL in contexts where you've removed a
large fraction of the rows.  In cases where you haven't, the large
transient space requirement (2x the table size) would be objectionable,
but it's not real clear why you need a VACUUM FULL rather than plain
VACUUM in such cases anyway.

A lot of the context for this arises from recent and planned
improvements, notably

(1) CLUSTER is MVCC-safe now, removing one of the core arguments
for not using it for routine cleanup.

(2) Planned fixes like the dead space map will substantially
reduce the cost of running frequent plain vacuums.  That together
with autovacuum (which we could make more aggressive in consequence)
should help to avoid getting into situations where VACUUM FULL is
needed in the first place.

We certainly couldn't have considered eliminating VACUUM FULL before
this, but it's starting to seem a viable option to me.

            regards, tom lane

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

Предыдущее
От: Bernhard D Rohrer
Дата:
Сообщение: Re: local authentication with md5 - solved
Следующее
От: Tom Lane
Дата:
Сообщение: Re: local authentication with md5