[GENERAL] Indexes and MVCC

Поиск
Список
Период
Сортировка
От Rakesh Kumar
Тема [GENERAL] Indexes and MVCC
Дата
Msg-id MWHPR2201MB1565371C36A8D0AF734BFCFF8C5F0@MWHPR2201MB1565.namprd22.prod.outlook.com
обсуждение исходный текст
Ответы Re: [GENERAL] Indexes and MVCC  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general

https://www.youtube.com/watch?v=8mKpfutwD0U&t=1741s

Somewhere around 13th minute, Chris Tavers mentions this:

1 - In the queuing table, the application deletes lot of rows (typical for a queuing table).
2 - Query trying to find out rows to be picked by the queue, accesses them via indexes.
3 - Vacuum took lot of time to clean up dead rows.
4 - Indexes do not reach out to the latest visible tuple and has to traverse lot of dead
     rows before hitting the row required by the sql. This is because of (3).

My Question:
Is the (4) true for all updates.  AFAIK, if an update occurs on even one index col, the
index itself creates a new version in MVCC. Only HOT updates will end up in situation
described in (3). 

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

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] No space left on device
Следующее
От: Gavan Schneider
Дата:
Сообщение: Re: [GENERAL] How tö select a column?