Re: Postgresql7.4.5 running slow on plpgsql function

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Postgresql7.4.5 running slow on plpgsql function
Дата
Msg-id 20050629125022.GA31236@winnie.fuhr.org
обсуждение исходный текст
Ответ на Postgresql7.4.5 running slow on plpgsql function  ("Chun Yit(Chronos)" <ivanbeh@chronos.com.my>)
Список pgsql-performance
[Please copy the mailing list on replies so others can contribute
to and learn from the discussion.]

On Wed, Jun 29, 2005 at 12:29:42PM +0800, Chun Yit(Chronos) wrote:
>
> Yes, the function will delete records from the temporary table every time
> on each call.
> if leaving a lot of dead tuples, then how can we solve it?

If the function deletes all records from the temporary table then
you could use TRUNCATE instead of DELETE.  Otherwise you could
VACUUM the table between calls to the function (you can't run VACUUM
inside a function).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "Martin Fandel"
Дата:
Сообщение: Re: could not receive data from client: Connection timed out Error
Следующее
От: Emil Briggs
Дата:
Сообщение: Exclusive lock question