Re: truncate vs. delete - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: truncate vs. delete
Date
Msg-id dcc563d10807240733s4408372eoc676d05b393337c2@mail.gmail.com
Whole thread Raw
In response to Re: truncate vs. delete  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
n Thu, Jul 24, 2008 at 7:53 AM, A. Kretschmer
<andreas.kretschmer@schollglas.com> wrote:
> am  Thu, dem 24.07.2008, um  9:47:48 -0400 mailte Emi Lu folgendes:
>> I found a link for SQL Server, it applies to PostgreSQL 8.0.x as well?
>> http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html
>
> Not realy, for instance, pg can rollback a truncate, and a sequence are
> not reset.

Also you can truncate a table with foreign key references (using
cascade), something SQL Server apparently can't do either.


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: truncate vs. delete
Next
From: Emi Lu
Date:
Subject: Re: truncate vs. delete