Re: Batch update of indexes on data loading

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Batch update of indexes on data loading
Дата
Msg-id 21028.1204255565@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Batch update of indexes on data loading  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: Batch update of indexes on data loading  ("Markus Bertheau" <mbertheau.pg@googlemail.com>)
Re: Batch update of indexes on data loading  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Список pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> BTW, why REINDEX requires access exclusive lock? Read-only queries
> are forbidden during the operation now, but I feel they are ok
> because REINDEX only reads existing tuples. 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.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: A couple of PG schedule reminders
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CREATE TABLE, load and freezing