Re: concurrent SELECT blocking ALTER?

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: concurrent SELECT blocking ALTER?
Дата
Msg-id CAMkU=1z5AusWf9d62w7ohEqT+RPWUmGEgaPGYPeA56R71X27jw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: concurrent SELECT blocking ALTER?  (Neil Harkins <nharkins@gmail.com>)
Список pgsql-general
On Wed, Jan 29, 2014 at 3:09 PM, Neil Harkins <nharkins@gmail.com> wrote:
Note the number of exclusive locks in my first message, it is equal to the number of threads (20). Also, the ALTER was not running then, apologies if that was not clear.

Not all locks are on tables.  Each transaction holds an Exclusive lock on its own virtual transaction id, and that is what you are seeing there. Looking the pg_locks table without looking at the nature of the locks is generally not very useful.

Cheers,

Jeff

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

Предыдущее
От: Neil Harkins
Дата:
Сообщение: Re: concurrent SELECT blocking ALTER?
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: Re: PostgreSQL specific datatypes very confusing for beginners who use wrappers around JDBC