Re: HOT WIP Patch - version 1

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: HOT WIP Patch - version 1
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901C138C5@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: HOT WIP Patch - version 1  (Heikki Linnakangas <heikki@enterprisedb.com>)
Ответы Re: HOT WIP Patch - version 1
Список pgsql-hackers
> What's the verdict on relaxing the "live tuple's ctid doesn't
> change rule"? If we did allow that within a page, what would
> we need to change?

I already said this, but why would this need to be visible from the
outside ?

A few assumptions:no back pointersindexes only point at slots marked as roots (and non hot tuples)

During vacuum, you swap the tuples and keep a stub at the slot that the
user's ctid might be pointing at. You mark the stub to detect this
situation.
When a select/update by ctid comes along it needs to do one step to the
root
and use that tuple instead.

It needs a second vacuum (or a per page vacuum during update) to remove
the
extra stub when it is dead and not recently dead.

I fail to see the hole.

Andreas


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

Предыдущее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: HOT WIP Patch - version 1
Следующее
От: Andreas Seltenreich
Дата:
Сообщение: Re: Writing triggers in C++