Feature request: Truncate table

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Feature request: Truncate table
Date: 2002-06-12 19:32:51
Message-ID: D90A5A6C612A39408103E6ECDD77B82920CF51@voyager.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Deletion of data from a PostgreSQL table is very slow.

It would be nice to have a very fast delete like "truncate table."

Now, truncate is a very dangerous command because it is not logged (but
the same is true for other operations like bulk copy and select into).
So one needs to be careful how this command is granted. The same damage
(accidental deletion of all data) can be done by drop table just as
easily.

I frequently have to do this right now in PostgreSQL, but I simply
emulate it by drop table/create table.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2002-06-12 19:35:41 Re: Feature request: Truncate table
Previous Message Thomas Lockhart 2002-06-12 19:13:50 Re: PostGres Doubt