Re: TRUNCATE veeeery slow compared to DELETE in 7.4

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Hartmut Raschick <hartmut(dot)raschick(at)ke-elektronik(dot)de>, pgsql-performance(at)postgresql(dot)org
Subject: Re: TRUNCATE veeeery slow compared to DELETE in 7.4
Date: 2003-12-10 17:18:02
Message-ID: 200312100918.02501.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hartmut,

> DELETE:
> 1) 0.03u 0.04s 0:02.46 2.8% (already empty)
> 2) 0.05u 0.06s 0:01.19 9.2% (already empty)
>
> TRUNCATE:
> 1) 0.10u 0.06s 6:58.66 0.0% (already empty, compile runnig simult.)
> 2) 0.10u 0.02s 2:51.71 0.0% (already empty)

How about some times for a full table?

Incidentally, I believe that TRUNCATE has always been slightly slower than
DROP TABLE.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Neil Conway 2003-12-10 19:15:35 Re: Solaris Performance (Again)
Previous Message Jeff 2003-12-10 13:53:23 Re: Solaris Performance (Again)