| От | Markus Schaber |
|---|---|
| Тема | Re: need vacuum after insert/truncate/insert? |
| Дата | |
| Msg-id | 44AE1C07.60009@logix-tt.com обсуждение исходный текст |
| Ответ на | need vacuum after insert/truncate/insert? ("Craig A. James" <cjames@modgraph-usa.com>) |
| Список | pgsql-performance |
Hi, Craig, Craig A. James wrote: > If I insert a bunch of rows, then truncate, then insert a bunch more > rows, do I need to vacuum? I've been assuming that TRUNCATE TABLE is a > brute-force technique that more-or-less tosses the old table and starts > fresh so that no vacuum is necessary. > > Second question: Same scenario as above, but now the table has indexes. > Is a reindex needed, or are the indexes they "truncated" too? AFAIK, both table and indices are "cut down" nicely. But you will need an ANALYZE after refilling of the table, to have current statistics. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера