Re: Triggers on TRUNCATE?

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Triggers on TRUNCATE?
Дата
Msg-id 1090889115.9455.3.camel@fuji.krosing.net
обсуждение исходный текст
Ответ на Re: Triggers on TRUNCATE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Triggers on TRUNCATE?
Список pgsql-hackers
On E, 2004-07-26 at 17:59, Tom Lane wrote:
> Daniel Baldoni <pgsql@lcds.com.au> writes:
> > Forgive this if it's totally "out there" but I was wondering why there's no
> > support for triggers on a TRUNCATE operation.
> 
> Because the entire point of TRUNCATE is not to scan the table contents.

Maybe he was after statement level triggers ?

We don't support them, and one also can't define a RULE for TRUNCATE -
so the advice would be to use TRUNCATE very sparingly ;)

Btw, does the right to TRUNCATE come with GRANT DELETE, or must one be a
superuser to TRUNCATE ?

---------------
Hannu



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.5 backend crash
Следующее
От: Justin Clift
Дата:
Сообщение: Re: Improvements to PostgreSQL