Re: Abnormal Growth of Index Size - Index Size 3x large than table size.

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Abnormal Growth of Index Size - Index Size 3x large than table size.
Дата
Msg-id CAHOFxGqFVqvj7mUKJMSKW5cwPbbfe6HRwGSZd8-LY5wYXkyb_g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Abnormal Growth of Index Size - Index Size 3x large than tablesize.  (Christian Ramseyer <rc@networkz.ch>)
Список pgsql-general
Indexes larger than the table may be expected if there are many. It may be prudent to check if they are being used in pg_stat_all_indexes.

If there are just a few indexes that are becoming bloated quickly, you'd want to ensure your autovacuum settings are tuned more aggressively, and consider lowering FILLFACTOR on the table to better support heap-only tuples (HOT) updates such that the index isn't touched when other columns are updated in the table. If you are on PG12, you can reindex concurrently assuming you have the space. If not, you can do the same manually like below-

CREATE INDEX CONCURRENTLY idx_new...
DROP INDEX CONCURRENTLY idx_old...
ALTER INDEX idx_new... RENAME TO idx_old...

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

Предыдущее
От: Christian Ramseyer
Дата:
Сообщение: Re: Encoding conversion: Use replacement character instead of failingquery with "ERROR: character with byte sequence 0xd0 0xad in encoding "UTF8"has no equivalent in encoding LATIN1" ?
Следующее
От: "Wolff, Ken L"
Дата:
Сообщение: RE: EXTERNAL: Re: Lock Postgres account after X number of failedlogins?