Truncate table

From: "Burak Seydioglu" <buraks78(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Truncate table
Date: 2007-08-23 22:08:07
Message-ID: 1b8a973c0708231508w3e1f4887n180b1424a6eb5021@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I have been reading about transactional DDLs at
http://archives.postgresql.org/pgsql-general/2007-06/msg00190.php.
This discussion seems to be recent though; is this feature available
in version 7.4?

In addition, CREATE TABLE, ALTER TABLE, DROP TABLE are all DDL
statements, how about TRUNCATE TABLE? The manual says it has the same
effect as DELETE so I think it is a DML but want to be sure.

Last of all, does a TRUNCATE TABLE statement issue a ROW EXCLUSIVE
lock as DELETE does?

Thank you,

Burak

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2007-08-24 01:34:22 Re: Truncate table
Previous Message Oliver Elphick 2007-08-20 16:50:17 Re: Recovering databases