AW: Plans for solving the VACUUM problem

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Plans for solving the VACUUM problem
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633682D2@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: Plans for solving the VACUUM problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > ???? Isn't current implementation "bulk delete" ?
> 
> No, the index AM is called separately for each index tuple to be
> deleted; more to the point, the search for deletable index tuples
> should be moved inside the index AM for performance reasons.

Wouldn't a sequential scan on the heap table be the fastest way to find
keys, that need to be deleted ?

foreach tuple in heap that can be deleted do:foreach index    call the current "index delete" with constructed key and
xtid

The advantage would be, that the current API would be sufficient and
it should be faster. The problem would be to create a correct key from the heap
tuple, that you can pass to the index delete function.

Andreas


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

Предыдущее
От: ncm@zembu.com (Nathan Myers)
Дата:
Сообщение: storage density
Следующее
От: "Jim Buttafuoco"
Дата:
Сообщение: Running config vars