Re: vacuum, performance, and MVCC

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DCP SD
Тема Re: vacuum, performance, and MVCC
Дата
Msg-id E1539E0ED7043848906A8FF995BDA579011EFDA7@m0143.s-mxs.net
обсуждение исходный текст
Ответ на vacuum, performance, and MVCC  ("Mark Woodward" <pgsql@mohawksoft.com>)
Список pgsql-hackers
> >> 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"
Дата:
Сообщение: Re: vacuum, performance, and MVCC
Следующее
От: "Diogo Biazus"
Дата:
Сообщение: xlog viewer proposal