Index table locking

Поиск
Список
Период
Сортировка
От Mark Woodward
Тема Index table locking
Дата
Msg-id CAO4kwD=2_iBMv3ca1ydTNHxe=UX8ipT8Z9t+Rph-sYsg6QYK6w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Index table locking  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgadmin-hackers
I have not kept up with PostgreSQL changes and have just been using it. A co-worker recently told me that you need to word "CONCURRENTLY" in "CREATE INDEX" to avoid table locking. I called BS on this because to my knowledge PostgreSQL does not lock tables. I referenced this page in the documentation:

http://www.postgresql.org/docs/9.3/static/locking-indexes.html

However, I do see this sentece in the indexing page that was not in the docs prior to 8.0:

"Creating an index can interfere with regular operation of a database. Normally PostgreSQL locks the table to be indexed against writes and performs the entire index build with a single scan of the table."

Is this true? When/why the change?

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Fixed some issues related to Resource Group
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Index table locking