Re: Using indexes for partial index builds

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Using indexes for partial index builds
Дата
Msg-id CAM-w4HPuS-23hQK1UwWmHPDaFpUYO_ZHoeixjP3a9gg_R7rTgw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using indexes for partial index builds  (Jim Nasby <jim@nasby.net>)
Ответы Re: Using indexes for partial index builds  (Ants Aasma <ants@cybertec.at>)
Список pgsql-hackers
On Thu, Mar 7, 2013 at 12:51 AM, Jim Nasby <jim@nasby.net> wrote:
> Something worth considering on this... I suspect it's possible to use an
> index-only scan to do this, regardless of whether the heap page is all
> visible. The reason is that the newly created index would just use the same
> access methodology as the original index, so any dead rows would be ignored.

This is actually quite clever. I wonder how many other cases can use
similar logic.

> We'd almost certainly need to block vacuums during the build however.
> Obviously not an issue for regular index builds, but it would be for
> concurrent ones.

Concurrent index builds block vacuums already.



-- 
greg



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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: [v9.3] writable foreign tables
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]