Re: Resumable vacuum proposal and design overview

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: Resumable vacuum proposal and design overview
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901CAFFC5@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: Resumable vacuum proposal and design overview  (Galy Lee <lee.galy@oss.ntt.co.jp>)
Ответы Re: Resumable vacuum proposal and design overview  ("Zeugswetter Andreas ADI SD" <ZeugswetterA@spardat.at>)
Список pgsql-hackers
> I admit that the implementation is much complex, but I can
> not see any big problems to save the dead tuples out and read
> it in again(like two phase commit does). Why do we need to
> hold the lock and transaction? We can open the lock and
> abandon the transaction ID, vacuum can take the lock and get

> a new ID when restarting. Why do we need to worry about if
> the dead tuple is still alive, only vacuum will sweep them,
> HOT can not touch the tuple until we have finished sweeping.

One imho important (not necessarily mandatory) aspect of HOT is, that it
does parts of what vacuum would usually do.

Thus:1. resume, load ctid list2. continue filling ctid list3. remove index tuples for these ctids (* problem *)


You have just removed index entries for possibly now live tuples that
have been reused by HOT.
Unless ...

Andreas



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

Предыдущее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: COMMIT NOWAIT Performance Option
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: urgent: upgraded to 8.2, getting kernel panics