REINDEX vs VACUUM

Поиск
Список
Период
Сортировка
От Hao Zhang
Тема REINDEX vs VACUUM
Дата
Msg-id CAGXpB2nN=CGRDnQN94iB_oZOUYa76CP-EXjzqyuCxjYnpphWdQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: REINDEX vs VACUUM  (Hao Zhang <kennthhz@gmail.com>)
Re: REINDEX vs VACUUM  (Rébeli-Szabó Tamás <pub@rblst.info>)
Список pgsql-general
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 по дате отправления:

Предыдущее
От: Rushikesh socha
Дата:
Сообщение: Re: Exact same output - pg_stat_statements
Следующее
От: Antonis Christodoulou
Дата:
Сообщение: PostgreSQL 12 service failing in Ubuntu 20.04 after a few hours