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

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: it is always delete temp table will slow down the postmaster?
Date: 2005-08-11 06:37:20
Message-ID: dderrg$f6a$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


""Chun Yit(Chronos)"" <ivanbeh(at)chronos(dot)com(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chun Yit(Chronos) 2005-08-11 07:03:30 Re: it is always delete temp table will slow down the postmaster?
Previous Message Mark Cotner 2005-08-11 04:40:23 Re: Speedier count(*)