Re: Batch update of indexes on data loading

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Batch update of indexes on data loading
Дата
Msg-id 20080229150623.60EA.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Batch update of indexes on data loading  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Batch update of indexes on data loading  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > Can we do REINDEX
> > holding only shared lock on the index?
> 
> No.  When you commit the reindex, the old copy of the index will
> instantaneously disappear; it will not do for someone to be actively
> scanning that copy.

Hmm... Is it ok if the index will *not* instantaneously disappear?
Keeping the old copy for a while and removing it after all transactions
are finished. It would be "pending truncate entries", that is something
like pending unlink entries in 8.3.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UUID data format 4x-4x-4x-4x-4x-4x-4x-4x
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Batch update of indexes on data loading