pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Hartmut Raschick <hartmut.raschick@ke-elektronik.de>
To: pgsql-performance@postgresql.org
Subject: Re: TRUNCATE veeeery slow compared to DELETE in 7.4
Date: Wed, 10 Dec 2003 09:18:02 -0800
Message-ID: <200312100918.02501.josh@agliodbs.com> (raw)
In-Reply-To: <3FD484B6.EF39A92F@ke-elektronik.de>
References: <3FD484B6.EF39A92F@ke-elektronik.de>

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



view thread (5+ messages)  latest in thread

Message-ID: <200312100918.02501.josh@agliodbs.com>
Permalink:  ../200312100918.02501.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200312100918.02501.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, hartmut.raschick@ke-elektronik.de
  Subject: Re: TRUNCATE veeeery slow compared to DELETE in 7.4
  In-Reply-To: <200312100918.02501.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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