Re: Batch update of indexes on data loading

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Batch update of indexes on data loading
Дата
Msg-id 22245.1204261545@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Batch update of indexes on data loading  ("Markus Bertheau" <mbertheau.pg@googlemail.com>)
Список pgsql-hackers
"Markus Bertheau" <mbertheau.pg@googlemail.com> writes:
> 2008/2/29, Tom Lane <tgl@sss.pgh.pa.us>:
>> 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.

> Can a shared lock be taken at first, and when the new index is ready,
> in order to delete the old index, elevate that lock to an exclusive
> one?

You could try, but lock upgrades are generally a recipe for increasing
your risk of deadlock failure.
        regards, tom lane


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

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