| От | Michael Fuhr |
|---|---|
| Тема | Re: update functions locking tables |
| Дата | |
| Msg-id | 20050830125341.GA56245@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: update functions locking tables (Clodoaldo Pinto <clodoaldo.pinto@gmail.com>) |
| Ответы |
Re: update functions locking tables
|
| Список | pgsql-general |
On Tue, Aug 30, 2005 at 08:39:52AM -0300, Clodoaldo Pinto wrote: > > begin; > select update_last_date(); > truncate times_producao; 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. -- Michael Fuhr
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера