Re: [PATCHES] Big number of "unused" pages as reported by VACUUM

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: [PATCHES] Big number of "unused" pages as reported by VACUUM
Дата
Msg-id GNELIHDDFBOCMGBFGEFOCEBNCEAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: [PATCHES] Big number of "unused" pages as reported by  (Yury Bokhoncovich <byg@center-f1.ru>)
Список pgsql-hackers
> I make a guess I've got this due to parallel running of a program making
> bulk INSERTs/UPDATEs into that table. Mmm...I need a way to avoid the big
> number of unused pages in such a case. LOCK TABLE?

Well, I suggest doing a normal vacuum analyze ('VACUUM ANALYZE goods') after
every bulk insert/update.  This will go through the table and mark all new
outdated tuples as re-usable.  That way, when you do your next bulk
insert/update it will be able to reuse the unused tuples.  Give that a
try...

Chris



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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Inheritance
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: [PATCHES] Big number of "unused" pages as reported by