Skip site navigation (1) Skip section navigation (2)

Re: Delete operation VERY slow...

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Delete operation VERY slow...
Date: 2006-06-16 07:17:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
am  16.06.2006, um 15:58:46 +0900 mailte David Leangen folgendes:
> Hello!
> I am trying to delete an entire table. There are about 41,000 rows in
> the table (based on count(*)).
> I am using the SQL comment: delete from table;

Use TRUNCATE table.

Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C
 ===    Schollglas Unternehmensgruppe    === 

In response to

pgsql-performance by date

Next:From: Richard Frith-MacdonaldDate: 2006-06-16 07:17:14
Subject: Why is my (empty) partial index query slow?
Previous:From: David LeangenDate: 2006-06-16 06:58:46
Subject: Delete operation VERY slow...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group