Re: Recommendation to run vacuum FULL in parallel

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Recommendation to run vacuum FULL in parallel
Дата
Msg-id caf7f86a-3a31-32d9-0902-d452090748b3@gmail.com
обсуждение исходный текст
Ответ на Recommendation to run vacuum FULL in parallel  (Perumal Raj <perucinci@gmail.com>)
Список pgsql-general
On 4/3/19 12:50 AM, Perumal Raj wrote:
Hi ALL

We are  planning to reclaim unused space from 9.2 Version postgres Cluster,

Method : VACUUM FULL

Does every table have so much free space that it's impractical to just let the files just get refilled by normal usage?

DB Size : 500 GB
Expected space to reclaim 150 GB
work_mem : 250 MB
maintenance_work_mem : 20 GB

Question :

1. vacuumdb --j option (Parallel) not available for version 9.2.
  How to run vacuum full in parallel ? At present its taking 8Hrs if i run sequential ( vacuum full verbose;)

2. If we run vacuum full, Do we need to run REINDEX/ANALYZE exclusively ?

3. What is the best way to run VACUUM FULL with less window.

A good way to run any task like this in parallel is to generate X lists of objects, and then process each list in parallel.

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: Perumal Raj
Дата:
Сообщение: Recommendation to run vacuum FULL in parallel
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Recommendation to run vacuum FULL in parallel