Re: Triggers on TRUNCATE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Triggers on TRUNCATE?
Дата
Msg-id 27539.1090853946@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Triggers on TRUNCATE?  (Daniel Baldoni <pgsql@lcds.com.au>)
Ответы Re: Triggers on TRUNCATE?
Список pgsql-hackers
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.

If you want to fire triggers, just use "DELETE FROM foo".
        regards, tom lane


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