Re: Create Index Locking Question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Create Index Locking Question
Дата
Msg-id 1571.1135293698@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Create Index Locking Question  (Mike C <smith.not.western@gmail.com>)
Список pgsql-admin
Mike C <smith.not.western@gmail.com> writes:
> I need to create a new index on an existing table. The table is constantly
> inserted into every second. Does CREATE INDEX require an exclusive write
> lock on the table? If it does have a write lock what happens to the insert
> statements at the time, are they simply played later or do they fail?

The inserting transactions are blocked until the CREATE INDEX is done.

            regards, tom lane

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: WAL and pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WAL and pg_dump