Re: update functions locking tables

Поиск
Список
Период
Сортировка
От Clodoaldo Pinto
Тема Re: update functions locking tables
Дата
Msg-id a595de7a05083006016be6189@mail.gmail.com
обсуждение исходный текст
Ответ на Re: update functions locking tables  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
2005/8/30, Michael Fuhr <mike@fuhr.org>:
>
> TRUNCATE acquires an AccessExclusiveLock, which conflicts with all
> other lock types.  Locks are held until the transaction completes,
> so once this lock is acquired no other transactions will be able
> to access the table until this transaction commits or rolls back.
>
> DELETE is slower than TRUNCATE but it won't block readers in other
> transactions.
>

I think it is of great help. I will change it and let you know what happened.

Regards, Clodoaldo Pinto

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Planner create a slow plan without an available index
Следующее
От: Greg Stark
Дата:
Сообщение: Re: About dropped notifications