| От | Richard Neill |
|---|---|
| Тема | Re: Fragmentation/Vacuum, Analyze, Re-Index |
| Дата | |
| Msg-id | 4B59FC1F.6050404@cam.ac.uk обсуждение исходный текст |
| Ответ на | Re: Fragmentation/Vacuum, Analyze, Re-Index (DM <dm.aeqa@gmail.com>) |
| Ответы |
Re: Fragmentation/Vacuum, Analyze, Re-Index
|
| Список | pgsql-performance |
DM wrote: > Is there any script/tool to identify if the table requires full vacuum? > or to re-index an existing index table? > Don't know if there is a script to specifically do this, though you may find this query a useful one: SELECT relname, reltuples, relpages FROM pg_class ORDER BY relpages DESC; (it shows what's currently using most of the disk). In general though, you should never use "VACUUM FULL". The best bet is to tune autovacuum to be more aggressive, and then occasionally run CLUSTER. Best wishes, Richard > Thanks > Deepak >
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера