Re: vacuum, performance, and MVCC

Поиск
Список
Период
Сортировка
Искать
От
Zeugswetter Andreas DCP SD
Тема
Re: vacuum, performance, and MVCC
Дата
Msg-id
E1539E0ED7043848906A8FF995BDA579011EFDA7@m0143.s-mxs.net
Список
Дерево обсуждения
Re: vacuum, performance, and MVCC "Zeugswetter Andreas DCP SD" <ZeugswetterA@spardat.at>
Re: vacuum, performance, and MVCC Csaba Nagy <nagy@ecircle-ag.com>

> >> Each time the record is updated, a new version is created, thus 
> >> lengthening the "correct" version search each time row is accessed,

> >> until, of course, the next vacuum comes along and corrects the
index 
> >> to point to the latest version of the record.
> >>
> >> Is that a fair explanation?
> >
> > No, it's not.
> >
> > 1.  The index points to all the versions, until they get vacuumed
out.

> it points to the last "current" version as updated by vacuum, or the
first version 
> of the row.

no, the index has one entry for each version of the row.
This is why updating only non-indexed columns is relatively expensive
in pg.

Andreas

В списке pgsql-hackers по дате отправления
От: Mark Woodward
Дата:
От: Diogo Biazus
Дата:
Сообщение: xlog viewer proposal
FAQ