| От | Tom Lane |
|---|---|
| Тема | Re: Why this lock? |
| Дата | |
| Msg-id | 20024.1440511742@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Why this lock? (Johann Spies <johann.spies@gmail.com>) |
| Список | pgsql-general |
Johann Spies <johann.spies@gmail.com> writes: > On 25 August 2015 at 15:52, Merlin Moncure <mmoncure@gmail.com> wrote: >> creating and index requires exclusive access. did you try the >> concurrent variant? > Yes. The one which I stopped after 5 days, was running concurrently. There > was a similar lock involved. That lock type is used by CREATE INDEX CONCURRENTLY when it has to wait out another transaction. There is no way around this, it's an inherent part of that algorithm. http://www.postgresql.org/docs/9.4/static/sql-createindex.html#SQL-CREATEINDEX-CONCURRENTLY regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера