Re: ACCESS EXCLUSIVE LOCK

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: ACCESS EXCLUSIVE LOCK
Дата
Msg-id 20060305232829.GF80721@pervasive.com
обсуждение исходный текст
Ответ на Re: ACCESS EXCLUSIVE LOCK  (seth.m.green@gmail.com)
Список pgsql-hackers
On Thu, Mar 02, 2006 at 06:16:00AM -0800, seth.m.green@gmail.com wrote:
> > TRUNCATE is another command that takes an access exclusive lock.
> 
> The whole SP takes about 10 seconds to run total.  The TRUNCATE command
> only takes less than a second.  However, the access exclusive lock is
> held throughout the entire SP, not just during the execution of the
> TRUNCATE command. Shouldn't TRUNCATE be releasing the lock as soon as
> it finishes?

Nope. Locks stick around until the transaction finishes.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Remove vestigial UNION JOIN support?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Not so happy with psql's new multiline behavior