7.2b4: faster to dump and reload than to vacuum full

Поиск
Список
Период
Сортировка
От Jeffrey W. Baker
Тема 7.2b4: faster to dump and reload than to vacuum full
Дата
Msg-id Pine.LNX.4.33.0201141009240.1967-100000@windmill.gghcwest.com
обсуждение исходный текст
Список pgsql-general
Vacuum full is kind of a drag, if most of the tuples have been deleted.
In fact, it is faster for me to dump, drop, and recreate my databases than
it is to vacuum full.

It would be nice if vacuum full had logic that understood when a table has
4000 tuples and 4000000000 deleted tuples it will probably be a lot faster
to just copy the good tuples into a new table and unlink the old table.

Does anyone know the effect of vacuum_mem setting on vacuum full time?
Mine is currently the default setting of 8192 (KB presumably).  My
databases are 70GB on a machine with 2GB main memory.

-jwb



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Anyway to know which users are connected to postgres?
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: 7.2 changes to varchar truncation