Re: truncate vs. delete

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Re: truncate vs. delete
Дата
Msg-id 48888804.3000906@encs.concordia.ca
обсуждение исходный текст
Ответ на truncate vs. delete  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: truncate vs. delete  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-sql
I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html





Emi Lu wrote:
> Good morning,
> 
> If I remember correctly, "delete" does not release space, while truncate 
> will.
> 
> I have an option now
> 
> (1) Use object creator(with create/drop permission which I do not need 
> in my cronjob script) to truncate table1(>100,000 recs) records
> 
> (2) Use user1(has r/w only) to delete from table1, then vacuum it
> 
> May I know how inefficient "delete from" comparing to truncate please?
> 
> Thanks a lot!
> 
> 
> 



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

Предыдущее
От: Emi Lu
Дата:
Сообщение: truncate vs. delete
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: truncate vs. delete