Re: about truncate

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
Subject: Re: about truncate
Date: 2008-12-24 07:55:12
Message-ID: 200812240955.13923.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Monday 22 December 2008 05:09:54 Jaime Casanova wrote:
> just out of curiosity, why TRUNCATE doesn't support ONLY?

It was probably just an omission.

Note that TRUNCATE currently does not act on inheriting tables. In other
words, the behavior is already like ONLY.

FWIW, the SQL standard says that TRUNCATE should support ONLY, just like
DELETE.

Something should probably be fixed or at least documented about this.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2008-12-24 08:20:35 Re: Synchronous replication, reading WAL for sending
Previous Message Fujii Masao 2008-12-24 07:39:07 Archiving control (a part of synch rep patches)