Re: [PATCHES] GIN improvements

Поиск
Список
Период
Сортировка
Искать
От
Teodor Sigaev
Тема
Re: [PATCHES] GIN improvements
Дата
Msg-id
48861758.4070507@sigaev.ru
Ответ на
Список
Дерево обсуждения
Re: [PATCHES] GIN improvements Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] GIN improvements Teodor Sigaev <teodor@sigaev.ru>
> I started to look at this.  I don't understand why VACUUM does an insert
> cleanup before starting to vacuum, but VACUUM FULL doesn't?

Hmm. May be I missed something, but I don't understand where and what... I tried 
to track all places of ambultdelete call. aminsertcleanup should be called 
before any ambulkdelete, because ambulkdelete doesn't scan pending list which 
can store items to be deleted and hence index will store item pointers to absent 
tuples.

> needed is the one at vacuum startup, which tempts me to propose that
> the new AM entry point should be called "amvacuumstartup", instead of
> wiring in the assumption that what it's for is specifically cleanup
> of insertions.

That's possible but inserts into index should be forbidden between 
amvacuumstartup and last call of ambulkdelete.


> 
> Comments?  I can make the change if you think it's okay --- I'm busy
> cleaning up docs and comments at the moment.


-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru                                                   WWW: http://www.sigaev.ru/

В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Alvaro Herrera
Дата:
FAQ