Re: Truncate Triggers - Mailing list pgsql-hackers

From David Fetter
Subject Re: Truncate Triggers
Date
Msg-id 20080202184325.GB4153@fetter.org
Whole thread Raw
In response to Re: Truncate Triggers  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Truncate Triggers
List pgsql-hackers
On Thu, Jan 31, 2008 at 10:22:42AM +0000, Gregory Stark wrote:
> 
> "Decibel!" <decibel@decibel.org> writes:
> 
> > CLUSTER isn't DDL. Most forms of ALTER TABLE are. And CREATE blah,
> > etc.
> 
> Fwiw I would call CLUSTER DDL. Note that it does make a change
> that's visible in the table definition afterwards.
> 
> There are plenty of DDL commands which modify data (CREATE INDEX,
> ATLER TABLE ALTER COLUMN TYPE). The defining characteristic of DDL
> is not that it doesn't modify the data but that it does modify the
> table definition.

Counter-example: ALTER TABLE ALTER COLUMN USING will almost certainly
modify data, but it's DDL nonetheless.

> By that definition CLUSTER is DDL and TRUNCATE is DDL if you look at
> the implementation rather than the user-visible effects.

I agree that both are more DDL-like than DML-like.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Re: configurability of OOM killer
Next
From: Tom Lane
Date:
Subject: Re: configurability of OOM killer