Re: Yet another "drop table vs delete" question

Поиск
Список
Период
Сортировка
От Thomas Finneid
Тема Re: Yet another "drop table vs delete" question
Дата
Msg-id 49EF31F6.5040900@fcon.no
обсуждение исходный текст
Ответ на Re: Yet another "drop table vs delete" question  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Yet another "drop table vs delete" question  (Erik Jones <ejones@engineyard.com>)
Список pgsql-general
Alvaro Herrera wrote:
> Try TRUNCATE.  That leaves the less garbage behind and takes the less
> time.

A follow up question, as far as I understand it, delete removes entries
in the fsm, so vacuum has to clean it all up when performing a delete,
is this approximately correct? what happens with truncate? does it
remove everything so that vacuum has almost no work to do or is it
approximately as much work either way?

regards

thomas


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

Предыдущее
От: John Cheng
Дата:
Сообщение: Re: What may cause - Connection rejected: FATAL: Ident authentication failed for user?
Следующее
От: S Arvind
Дата:
Сообщение: Reg: Logging log_min_duration_statement