pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedit is always delete temp table will slow down the postmaster?
3+ messages / 2 participants
[nested] [flat]
* it is always delete temp table will slow down the postmaster?
@ 2005-08-11 03:37 Chun Yit(Chronos) <ivanbeh@chronos.com.my>
2005-08-11 06:37 ` Re: it is always delete temp table will slow down the postmaster? Qingqing Zhou <zhouqq@cs.toronto.edu>
0 siblings, 1 reply; 3+ messages in thread
From: Chun Yit(Chronos) @ 2005-08-11 03:37 UTC (permalink / raw)
To: pgsql-performance
>
>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. my question is, would it slow down the postmaster speed if i continue to
>run this searching function more than 300 time per day?, cause the speed for execute searching function will graduatelly increase
>after i test it for few day? anyway to test it is causing by the drop temp table and create temp table command?
>
>regards
>ivan
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: it is always delete temp table will slow down the postmaster?
2005-08-11 03:37 it is always delete temp table will slow down the postmaster? Chun Yit(Chronos) <ivanbeh@chronos.com.my>
@ 2005-08-11 06:37 ` Qingqing Zhou <zhouqq@cs.toronto.edu>
2005-08-11 07:03 ` Re: it is always delete temp table will slow down the postmaster? Chun Yit(Chronos) <ivanbeh@chronos.com.my>
0 siblings, 1 reply; 3+ messages in thread
From: Qingqing Zhou @ 2005-08-11 06:37 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: it is always delete temp table will slow down the postmaster?
2005-08-11 03:37 it is always delete temp table will slow down the postmaster? Chun Yit(Chronos) <ivanbeh@chronos.com.my>
2005-08-11 06:37 ` Re: it is always delete temp table will slow down the postmaster? Qingqing Zhou <zhouqq@cs.toronto.edu>
@ 2005-08-11 07:03 ` Chun Yit(Chronos) <ivanbeh@chronos.com.my>
0 siblings, 0 replies; 3+ messages in thread
From: Chun Yit(Chronos) @ 2005-08-11 07:03 UTC (permalink / raw)
To: Qingqing Zhou <zhouqq@cs.toronto.edu>; pgsql-performance
----- Original Message -----
From: "Qingqing Zhou" <zhouqq@cs.toronto.edu>
To: <pgsql-performance@postgresql.org>
Sent: Thursday, August 11, 2005 2:37 PM
Subject: Re: [PERFORM] it is always delete temp table will slow down the
postmaster?
>
> ""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
>
>sorry, but truncate table cannot use inside function, any other way ?
>Regards
>ivan
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.5/68 - Release Date: 10/Aug/05
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-08-11 07:03 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-11 03:37 it is always delete temp table will slow down the postmaster? Chun Yit(Chronos) <ivanbeh@chronos.com.my>
2005-08-11 06:37 ` Qingqing Zhou <zhouqq@cs.toronto.edu>
2005-08-11 07:03 ` Chun Yit(Chronos) <ivanbeh@chronos.com.my>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox