On Thu, Jan 31, 2008 at 10:22:42AM +0000, Gregory Stark wrote:
> 
> "Decibel!" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: [EMAIL PROTECTED]

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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to