Re: Truncate Triggers - Mailing list pgsql-hackers

From Decibel!
Subject Re: Truncate Triggers
Date
Msg-id 20080125174934.GI37748@decibel.org
Whole thread Raw
In response to Truncate Triggers  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: Truncate Triggers
List pgsql-hackers
On Fri, Jan 25, 2008 at 11:40:19AM +0000, Simon Riggs wrote:
> (for 8.4 ...)
> I'd like to introduce triggers that fire when we issue a truncate:

Rather than focusing exclusively on TRUNCATE, how about "triggers" that
fire whenever any kind of DDL operation is performed? (Ok, truncate is
more DML than DDL, but still).

The reason I put triggers in quotes is because I'm not suggesting that
we actually put triggers on the catalog tables, since we all know that's
hard/impossible. Instead this would have to tie into command processing,
similar to what you're proposing for truncate.
--
Decibel!, aka Jim C. Nasby, Database Architect  decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: CLUSTER and synchronized scans and pg_dump et al
Next
From: Decibel!
Date:
Subject: Re: There's random access and then there's random access