Re: Which SQL command creates ExclusiveLock?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Which SQL command creates ExclusiveLock?
Дата
Msg-id 22918.1083125788@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Which SQL command creates ExclusiveLock?  ("Denis Khabas" <dkhabas@bluecatnetworks.com>)
Список pgsql-sql
"Denis Khabas" <dkhabas@bluecatnetworks.com> writes:
> According to postgres documentation, all update operations place ROW EXCLUS=
> IVE MODE locks, and=20
> EXCLUSIVE MODE is not automatically acquired by any postgres SQL command. S=
> o, which command places
> ExclusiveLock?

It says that no SQL command acquires ExclusiveLock *on a table*.  The
pg_locks row you show represents ExclusiveLock on a transaction number.
Every transaction gets ExclusiveLock on its transaction number for the
duration of its existence.
        regards, tom lane


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

Предыдущее
От: Ray Jackson
Дата:
Сообщение: date arithmetic over calender year boundaries
Следующее
От: "kumar"
Дата:
Сообщение: Re: Customised Encoding