When to REINDEX a serial key?

Поиск
Список
Период
Сортировка
От Ron
Тема When to REINDEX a serial key?
Дата
Msg-id 7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com
обсуждение исходный текст
Ответы Re: When to REINDEX a serial key?  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-general
Server: RDS Postgresql 12.5
Client: Vanilla Postgresql 12.5

Like most systems, we have lots of tables indexed on sequences.  Thus, all new keys are inserted into the "lower right hand corner" of the b-tree.

The legacy RDBMS which I used to manage has a tool for analyzing (not in the Postgresql meaning of the word) an index, and displaying a histogram of how many layers deep various parts of an index are.  Using that histogram, you can tell whether or not an index needs to be rebuilt.

How does one get the same effect in Postgresql?

--
Angular momentum makes the world go 'round.

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: The Curious Case of the Table-Locking UPDATE Query
Следующее
От: David Rowley
Дата:
Сообщение: Re: When to REINDEX a serial key?