Re: A question about Vacuum analyze

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A question about Vacuum analyze
Дата
Msg-id 28501.1140104921@sss.pgh.pa.us
обсуждение исходный текст
Ответ на A question about Vacuum analyze  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: A question about Vacuum analyze  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-general
Emi Lu <emilu@encs.concordia.ca> writes:
> In another way, whenever we "delete/truncate and then insert" data into
> a table, it is better to "vacuum anaylze"?

You shouldn't need a VACUUM if you haven't yet done any updates or
deletes since the TRUNCATE.  An ANALYZE seems like a good idea, though.
(You could get away without ANALYZE if the new data has essentially the
same statistics as the old, but if you're making only minor changes, why
are you using this technique at all ...)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why does an ON SELECT rule have to be named "_RETURN"?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Why does an ON SELECT rule have to be named "_RETURN"?