| От | Tom Lane |
|---|---|
| Тема | Re: TRUNCATE TABLE |
| Дата | |
| Msg-id | 3561.1184190885@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | TRUNCATE TABLE (Adriaan van Os <postgres@microbizz.nl>) |
| Ответы |
Re: TRUNCATE TABLE
|
| Список | pgsql-performance |
Adriaan van Os <postgres@microbizz.nl> writes:
> Surprisingly, one of the bottlenecks is TRUNCATE TABLE and that
> command is really slow as compared to other operations.
When you don't quantify that statement at all, it's hard to make an
intelligent comment on it, but TRUNCATE per se shouldn't be slow.
Are you sure you are not measuring a delay to obtain exclusive lock
on the table before it can be truncated (ie, waiting for other
transactions to finish with it)?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера