Re: it is always delete temp table will slow down the postmaster?

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: it is always delete temp table will slow down the postmaster?
Дата
Msg-id dderrg$f6a$1@news.hub.org
обсуждение исходный текст
Ответ на it is always delete temp table will slow down the postmaster?  ("Chun Yit(Chronos)" <ivanbeh@chronos.com.my>)
Список pgsql-performance
""Chun Yit(Chronos)"" <ivanbeh@chronos.com.my> writes
>
>hi, i got one situation here, i create one pl/pgsql function that using
temp table to store temporary data.
>wherever i execute my function, i need to delete all the data inside the
temp table, but this will slow down the
>searching function if i conitnue to run the server because old tuples are
not really clear if just using delete command.
>so i use drop table command and recreate the table.

A better way to empty a table fast is "truncate table".

Regards,
Qingqing



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

Предыдущее
От: Mark Cotner
Дата:
Сообщение: Re: Speedier count(*)
Следующее
От: "Chun Yit(Chronos)"
Дата:
Сообщение: Re: it is always delete temp table will slow down the postmaster?