impact of truncate table on indexes

Поиск
Список
Период
Сортировка
От Dinesh Bhandary
Тема impact of truncate table on indexes
Дата
Msg-id 4EF37188.1000208@iii.com
обсуждение исходный текст
Ответы Re: impact of truncate table on indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Hi All -

We have been having some performance issues with indexes right after
truncating a table. My understanding is truncate removes all the
contents of the table and the space get reclaimed immediately.
In such cases what happens to its indexes. It does not seem like they
are removed, but merely marked for deletion by a vacuum job and it
creates huge bloats and performance problems.

What is the best procedure in scenarios like this? Recreating indexes
seems to solve the problem, but I am trying to find out if there are
other alternatives out there.

Thanks.
Dinesh

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with pgstat timneouts
Следующее
От: "Benjamin Krajmalnik"
Дата:
Сообщение: Re: Problem with pgstat timneouts