Re: DELETE TABLE xx do not erase index file after a vacuum full ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DELETE TABLE xx do not erase index file after a vacuum full ?
Дата
Msg-id 28656.1088702575@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DELETE TABLE xx do not erase index file after a vacuum full ?  (Hervé Piedvache <herve@elma.fr>)
Ответы Re: DELETE TABLE xx do not erase index file after a vacuum full ?  (Hervé Piedvache <herve@elma.fr>)
Список pgsql-general
=?iso-8859-15?q?Herv=E9_Piedvache?= <herve@elma.fr> writes:
> I have done a :
> DELETE from my_table;

TRUNCATE would serve you a lot better.

For major reductions in table size VACUUM FULL is not the best tool;
you really want to reconstruct the indexes from scratch.  Consider
REINDEX, CLUSTER, or (in this case) TRUNCATE.

            regards, tom lane

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

Предыдущее
От: Bill Montgomery
Дата:
Сообщение: Re: backups
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problems restarting after database crashed (signal 11).