Re: trigger for TRUNCATE?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Gerardo Herzig <gherzig(at)fmed(dot)uba(dot)ar>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Chris Browne <cbbrowne(at)acm(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: trigger for TRUNCATE?
Date: 2008-01-10 17:10:27
Message-ID: 20080110171027.GK6465@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Gerardo Herzig escribió:

> Yes, the TRUNCATE statement is not sql ansi, maybe is a more low level
> thing than i think.

TRUNCATE currently does not fire triggers, but that doesn't mean it's
impossible to do it. I think it would be fairly easy to add support
for that.

Currently, Mammoth Replicator does replicate TRUNCATE commands.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2008-01-10 17:38:54 Re: trigger for TRUNCATE?
Previous Message Gerardo Herzig 2008-01-10 16:40:11 Re: trigger for TRUNCATE?