Re: Vacuuming

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuuming
Дата
Msg-id 22584.1178598019@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Vacuuming  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Vacuuming  (Paul Lambert <paul.lambert@autoledgers.com.au>)
Re: Vacuuming  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Список pgsql-general
I wrote:
>> Is there any point in vacuuming?

> The only thing a vacuum would do for you there is set the commit hint
> bits on the newly-inserted rows.  Which might be worth doing if you want
> to get the table into a totally "clean" state, but it's probably a bit
> excessive.  SELECTs on the table will set the hint bits anyway as
> they visit not-yet-hinted rows, so it's really a matter of do you want
> to pay that overhead all at once or spread-out.

I forgot to mention that any other operation that examines every table
row will fix all the hint bits as well.  In particular a CREATE INDEX
would do that --- so if you are planning to create some indexes then
there's certainly no point in a VACUUM just after a table load.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Vacuuming
Следующее
От: "Harvey, Allan AC"
Дата:
Сообщение: 'Expensive' column in result set