Re: REINDEX vs VACUUM

Поиск
Список
Период
Сортировка
От Hao Zhang
Тема Re: REINDEX vs VACUUM
Дата
Msg-id CAGXpB2m-OW46r7+mi2LR7BuBc5FApFyuydCxrT=UNvWahxjfsQ@mail.gmail.com
обсуждение исходный текст
Ответ на REINDEX vs VACUUM  (Hao Zhang <kennthhz@gmail.com>)
Список pgsql-general
+ pgsql-admin
Would appreciate any insights. Thanks

On Sat, Dec 31, 2022 at 1:04 PM Hao Zhang <kennthhz@gmail.com> wrote:
What is the difference between reindex and vacuum's impact on index file? I deleted an indexed row. Running either vacuum or reindex shows the index entry for the row is removed from the index page. I was under the impression that only reindex will remove dangling index entries. I am guessing that vacuum will not shrink the index file and will only add deleted index entries in the free space file for the index? But REINDEX is recreating the index file from scratch so it is like vacuum full for index?

Thanks

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

Предыдущее
От: "Zwettler Markus (OIZ)"
Дата:
Сообщение: postgres restore & needed history files
Следующее
От: Rébeli-Szabó Tamás
Дата:
Сообщение: Re: REINDEX vs VACUUM