Re: Truncate Triggers

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Truncate Triggers
Дата
Msg-id 20080129000913.GG1817@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Truncate Triggers  (Decibel! <decibel@decibel.org>)
Ответы Re: Truncate Triggers  (Decibel! <decibel@decibel.org>)
Список pgsql-hackers
Decibel! wrote:
> 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).

I don't think it makes sense in general.  For example, would we fire
triggers on CLUSTER?  Or on ALTER TABLE / SET STATISTICS?

TRUNCATE seems a special case that needs it.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Strange locking choices in pg_shdepend.c
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: [PATCHES] Proposed patch: synchronized_scanning GUCvariable