X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7D016D1B4AC for ; Wed, 10 Dec 2003 17:20:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84869-05 for ; Wed, 10 Dec 2003 13:19:34 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 22996D1B456 for ; Wed, 10 Dec 2003 13:19:33 -0400 (AST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 4054923; Wed, 10 Dec 2003 09:20:09 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Hartmut Raschick , pgsql-performance@postgresql.org Subject: Re: TRUNCATE veeeery slow compared to DELETE in 7.4 Date: Wed, 10 Dec 2003 09:18:02 -0800 User-Agent: KMail/1.4.3 References: <3FD484B6.EF39A92F@ke-elektronik.de> In-Reply-To: <3FD484B6.EF39A92F@ke-elektronik.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200312100918.02501.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/168 X-Sequence-Number: 5028 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