Re: Truncate Triggers

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: Truncate Triggers
Дата
Msg-id 20080202184325.GB4153@fetter.org
обсуждение исходный текст
Ответ на Re: Truncate Triggers  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: Truncate Triggers
Список 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 по дате отправления:

Предыдущее
От: Florian Weimer
Дата:
Сообщение: Re: configurability of OOM killer
Следующее
От: Tom Lane
Дата:
Сообщение: Re: configurability of OOM killer